From 0ac021e8b9a2c76e4e730d41f3e59ad54df7926d Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 21 Mar 2012 18:55:33 -0700 Subject: lib/bb/ui/crumbs/hig: disable removal of meta-hob layer The Hob GUI requires the meta-hob layer to function so prevent its removal as we do with the core meta layer. (From Poky rev: a64d71e1e4475236e286cb20dde29c4d099d3693) (Bitbake rev: 431624678025b3d3fe04f1c6e8fc50820b3129fb) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/crumbs/hig.py') diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 6b46a6212a..652226c13f 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py @@ -886,7 +886,7 @@ class LayerSelectionDialog (CrumbsDialog): # Trailing slashes are uncommon in bblayers.conf but confuse os.path.basename path.rstrip('/') name = os.path.basename(path) - if name == "meta": + if name == "meta" or name == "meta-hob": cell.set_sensitive(False) cell.set_property('pixbuf', None) cell.set_property('mode', gtk.CELL_RENDERER_MODE_INERT) @@ -907,6 +907,8 @@ class LayerSelectionDialog (CrumbsDialog): name = os.path.basename(path) if name == "meta": cell.set_property('markup', "Core layer for images: it cannot be removed\n%s" % path) + elif name == "meta-hob": + cell.set_property('markup', "Core layer for Hob: it cannot be removed\n%s" % path) else: cell.set_property('text', path) -- cgit v1.2.3-54-g00ecf