]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
hob: changes to INHERIT var should use "append" operation
authorCristiana Voicu <cristiana.voicu@intel.com>
Thu, 5 Dec 2013 14:09:15 +0000 (16:09 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2013 16:26:56 +0000 (16:26 +0000)
Setting INHERIT var means to remove other operations made on INHERIT.
This is too intrusive, so we decided to use append for this case.

[YOCTO #5448]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/crumbs/hobeventhandler.py

index ce8584df4c225d90429fc081113fd6a5ca0c4c2b..7014935f6dd58069e1c93d42a239f0bd95b4f0ff 100644 (file)
@@ -306,9 +306,7 @@ class HobHandler(gobject.GObject):
         self.runCommand(["createConfigFile", ".hob.conf"])
 
     def set_extra_inherit(self, bbclass):
-        inherits = self.runCommand(["getVariable", "INHERIT"]) or ""
-        inherits = inherits + " " + bbclass
-        self.set_var_in_file("INHERIT", inherits, ".hob.conf")
+        self.append_var_in_file("INHERIT", bbclass, ".hob.conf")
 
     def set_bblayers(self, bblayers):
         self.set_var_in_file("BBLAYERS", " ".join(bblayers), "bblayers.conf")