diff options
| author | Joshua Lock <josh@linux.intel.com> | 2012-03-21 18:55:33 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-22 14:43:51 +0000 |
| commit | 0ac021e8b9a2c76e4e730d41f3e59ad54df7926d (patch) | |
| tree | 2bea8302ecc6c21fd923688744787db68e24a69e | |
| parent | 1f3a6379c5191e75117490e6a0df5eb23d85a7e9 (diff) | |
| download | poky-0ac021e8b9a2c76e4e730d41f3e59ad54df7926d.tar.gz | |
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 <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): | |||
| 886 | # Trailing slashes are uncommon in bblayers.conf but confuse os.path.basename | 886 | # Trailing slashes are uncommon in bblayers.conf but confuse os.path.basename |
| 887 | path.rstrip('/') | 887 | path.rstrip('/') |
| 888 | name = os.path.basename(path) | 888 | name = os.path.basename(path) |
| 889 | if name == "meta": | 889 | if name == "meta" or name == "meta-hob": |
| 890 | cell.set_sensitive(False) | 890 | cell.set_sensitive(False) |
| 891 | cell.set_property('pixbuf', None) | 891 | cell.set_property('pixbuf', None) |
| 892 | cell.set_property('mode', gtk.CELL_RENDERER_MODE_INERT) | 892 | cell.set_property('mode', gtk.CELL_RENDERER_MODE_INERT) |
| @@ -907,6 +907,8 @@ class LayerSelectionDialog (CrumbsDialog): | |||
| 907 | name = os.path.basename(path) | 907 | name = os.path.basename(path) |
| 908 | if name == "meta": | 908 | if name == "meta": |
| 909 | cell.set_property('markup', "<b>Core layer for images: it cannot be removed</b>\n%s" % path) | 909 | cell.set_property('markup', "<b>Core layer for images: it cannot be removed</b>\n%s" % path) |
| 910 | elif name == "meta-hob": | ||
| 911 | cell.set_property('markup', "<b>Core layer for Hob: it cannot be removed</b>\n%s" % path) | ||
| 910 | else: | 912 | else: |
| 911 | cell.set_property('text', path) | 913 | cell.set_property('text', path) |
| 912 | 914 | ||
