summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-29 20:01:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 21:25:52 +0100
commit345a2dd01c07750509ca2dcc5851cfd912bbace8 (patch)
treed261bc1576d9bf8f986e4a9c77d9c7ff326b96de /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parent8b26fdcb3a7e08b67241f15e571dc5d81950321d (diff)
downloadpoky-345a2dd01c07750509ca2dcc5851cfd912bbace8.tar.gz
Hob: Fix adding duplicated meta-hob layer
While adding meta-hob layer, we need to detect whether it already exists in current layers. (Bitbake rev: b195823d19bcb71bd5eef19acfe22b2dd670d90a) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index f189553267..1cbb0274c6 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -383,7 +383,9 @@ class HobHandler(gobject.GObject):
383 params = {} 383 params = {}
384 params["core_base"] = self.server.runCommand(["getVariable", "COREBASE"]) or "" 384 params["core_base"] = self.server.runCommand(["getVariable", "COREBASE"]) or ""
385 hob_layer = params["core_base"] + "/meta-hob" 385 hob_layer = params["core_base"] + "/meta-hob"
386 params["layer"] = (self.server.runCommand(["getVariable", "BBLAYERS"]) or "") + " " + hob_layer 386 params["layer"] = self.server.runCommand(["getVariable", "BBLAYERS"]) or ""
387 if hob_layer not in params["layer"].split():
388 params["layer"] += (" " + hob_layer)
387 params["dldir"] = self.server.runCommand(["getVariable", "DL_DIR"]) or "" 389 params["dldir"] = self.server.runCommand(["getVariable", "DL_DIR"]) or ""
388 params["machine"] = self.server.runCommand(["getVariable", "MACHINE"]) or "" 390 params["machine"] = self.server.runCommand(["getVariable", "MACHINE"]) or ""
389 params["distro"] = self.server.runCommand(["getVariable", "DISTRO"]) or "defaultsetup" 391 params["distro"] = self.server.runCommand(["getVariable", "DISTRO"]) or "defaultsetup"