summaryrefslogtreecommitdiffstats
path: root/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:15:45 +0100
commitb195823d19bcb71bd5eef19acfe22b2dd670d90a (patch)
tree9eb6987b50df5704603df0467d45aa35fdd2e907 /lib/bb/ui/crumbs/hobeventhandler.py
parent9c632467eddc267ed54b78a40d5b1413287e3032 (diff)
downloadbitbake-b195823d19bcb71bd5eef19acfe22b2dd670d90a.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. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index f18955326..1cbb0274c 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -383,7 +383,9 @@ class HobHandler(gobject.GObject):
params = {}
params["core_base"] = self.server.runCommand(["getVariable", "COREBASE"]) or ""
hob_layer = params["core_base"] + "/meta-hob"
- params["layer"] = (self.server.runCommand(["getVariable", "BBLAYERS"]) or "") + " " + hob_layer
+ params["layer"] = self.server.runCommand(["getVariable", "BBLAYERS"]) or ""
+ if hob_layer not in params["layer"].split():
+ params["layer"] += (" " + hob_layer)
params["dldir"] = self.server.runCommand(["getVariable", "DL_DIR"]) or ""
params["machine"] = self.server.runCommand(["getVariable", "MACHINE"]) or ""
params["distro"] = self.server.runCommand(["getVariable", "DISTRO"]) or "defaultsetup"