Skip to contentSkip to conversation

hob: when BBLAYERS_NON_REMOVABLE is not set hob shows an error

PATCH Applied Cristiana Voicu 2 participants 2 messages Nov 27, 2012 – Nov 28, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hob: when BBLAYERS_NON_REMOVABLE is not set hob shows an error

---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/ui/crumbs/hobeventhandler.py +1 -1
index ae1cefc..8a2ac5f 100644
@@ -435,7 +435,7 @@ class HobHandler(gobject.GObject):
         params["core_base"] = self.runCommand(["getVariable", "COREBASE"]) or ""
         hob_layer = params["core_base"] + "/meta-hob"
         params["layer"] = self.runCommand(["getVariable", "BBLAYERS"]) or ""
-        params["layers_non_removable"] = self.runCommand(["getVariable", "BBLAYERS_NON_REMOVABLE"])
+        params["layers_non_removable"] = self.runCommand(["getVariable", "BBLAYERS_NON_REMOVABLE"]) or ""
         if hob_layer not in params["layer"].split():
             params["layer"] += (" " + hob_layer)
         if hob_layer not in params["layers_non_removable"].split():
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines · Cristiana Voicu
---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/ui/crumbs/hobeventhandler.py +0 -0
index ae1cefc..8a2ac5f 100644

bitbake/lib/bb/ui/crumbs/hobeventhandler.py class HobHandler(gobject.GObject): · line 441

Quoted 8 lines
bitbake/lib/bb/ui/crumbs/hobeventhandler.py +1 -1
@@ -435,7 +435,7 @@ class HobHandler(gobject.GObject):
         params["core_base"] = self.runCommand(["getVariable", "COREBASE"]) or ""
         hob_layer = params["core_base"] + "/meta-hob"
         params["layer"] = self.runCommand(["getVariable", "BBLAYERS"]) or ""
-        params["layers_non_removable"] = self.runCommand(["getVariable", "BBLAYERS_NON_REMOVABLE"])
+        params["layers_non_removable"] = self.runCommand(["getVariable", "BBLAYERS_NON_REMOVABLE"]) or ""
         if hob_layer not in params["layer"].split():
             params["layer"] += (" " + hob_layer)
         if hob_layer not in params["layers_non_removable"].split():

Merged to master, thanks.

Richard