Patchwork [bitbake-devel] hob: adding INHERIT += " testimage " affects image recipes list

login
register
mail settings
Submitter Cristiana Voicu
Date April 4, 2014, 10:53 a.m.
Message ID <1396608820-6039-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/70109/
State New
Headers show

Comments

Cristiana Voicu - April 4, 2014, 10:53 a.m.
To find if a recipe is for an image, Hob checks if it inherits
image.bbclass. But when you add testimage in local.conf, this will
be added for each recipe, and it pass the test. Adding a "/" before
"image.bbclass", will check only for image.bbclass.

[YOCTO #6117]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hoblistmodel.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index 02d6332..50df156 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -703,7 +703,7 @@  class RecipeListModel(gtk.ListStore):
 
             if ('packagegroup.bbclass' in " ".join(inherits)):
                 atype = 'packagegroup'
-            elif ('image.bbclass' in " ".join(inherits)):
+            elif ('/image.bbclass' in " ".join(inherits)):
                 if "edited" not in name:
                     atype = 'image'
                     install = event_model["rdepends-pkg"].get(item, []) + event_model["rrecs-pkg"].get(item, [])