diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-29 20:01:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-29 21:25:52 +0100 |
commit | 345a2dd01c07750509ca2dcc5851cfd912bbace8 (patch) | |
tree | d261bc1576d9bf8f986e4a9c77d9c7ff326b96de | |
parent | 8b26fdcb3a7e08b67241f15e571dc5d81950321d (diff) | |
download | ast2050-yocto-poky-345a2dd01c07750509ca2dcc5851cfd912bbace8.zip ast2050-yocto-poky-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>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 |
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 f189553..1cbb027 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): 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" |