Skip to contentSkip to conversation

hob: changes to INHERIT var should use "append" operation

PATCH New Cristiana Voicu 1 participant 1 message Dec 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hob: changes to INHERIT var should use "append" operation

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]
---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
bitbake/lib/bb/ui/crumbs/hobeventhandler.py +1 -3
index ce8584d..7014935 100644
@@ -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")
Signature · 1 line
1.7.9.5