From 2bd4c2be9ffc71d6e7b21ce75c228a70ed00e6d2 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Thu, 5 Dec 2013 16:09:15 +0200 Subject: bitbake: 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 rev: a2d0122c198ee50325e6f0e2f5d1c2284475fc7b) Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bitbake/lib/bb/ui') diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index ce8584df4c..7014935f6d 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py @@ -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") -- cgit v1.2.3-54-g00ecf