summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-10 18:26:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-10 21:54:17 +0100
commita3bf87a90198bf6127663c27d8be086dab04aaf9 (patch)
tree9c191969894868f132ea8eb249115e561ebd79e3 /lib
parent563ea5233a5ab1629c51e802d04280692f96c596 (diff)
downloadbitbake-a3bf87a90198bf6127663c27d8be086dab04aaf9.tar.gz
hob: rename task -> packagegroup in recipe selection
This changes the filtering to use the inheritance of packagegroup.bbclass to determine if a recipe is a package group. Also makes the tab tooltip text generic; these recipes could come from any enabled layer, not just the default ones. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/crumbs/hoblistmodel.py4
-rwxr-xr-xlib/bb/ui/crumbs/recipeselectionpage.py14
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/bb/ui/crumbs/hoblistmodel.py b/lib/bb/ui/crumbs/hoblistmodel.py
index 66b0efa6b..15894d378 100644
--- a/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/lib/bb/ui/crumbs/hoblistmodel.py
@@ -595,8 +595,8 @@ class RecipeListModel(gtk.ListStore):
depends = event_model["depends"].get(item, []) + event_model["rdepends-pn"].get(item, [])
- if ('task-' in name):
- atype = 'task'
+ if ('packagegroup.bbclass' in " ".join(inherits)):
+ atype = 'packagegroup'
elif ('image.bbclass' in " ".join(inherits)):
if name != "hob-image":
atype = 'image'
diff --git a/lib/bb/ui/crumbs/recipeselectionpage.py b/lib/bb/ui/crumbs/recipeselectionpage.py
index 693a449bc..0b159bb10 100755
--- a/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -36,7 +36,7 @@ class RecipeSelectionPage (HobPage):
'name' : 'Included recipes',
'tooltip' : 'The recipes currently included for your image',
'filter' : { RecipeListModel.COL_INC : [True],
- RecipeListModel.COL_TYPE : ['recipe', 'task'] },
+ RecipeListModel.COL_TYPE : ['recipe', 'packagegroup'] },
'columns' : [{
'col_name' : 'Recipe name',
'col_id' : RecipeListModel.COL_NAME,
@@ -67,7 +67,7 @@ class RecipeSelectionPage (HobPage):
}]
}, {
'name' : 'All recipes',
- 'tooltip' : 'All recipes available in the Yocto Project',
+ 'tooltip' : 'All recipes in your configured layers',
'filter' : { RecipeListModel.COL_TYPE : ['recipe'] },
'columns' : [{
'col_name' : 'Recipe name',
@@ -98,11 +98,11 @@ class RecipeSelectionPage (HobPage):
'col_max' : 100
}]
}, {
- 'name' : 'Tasks',
- 'tooltip' : 'All tasks available in the Yocto Project',
- 'filter' : { RecipeListModel.COL_TYPE : ['task'] },
+ 'name' : 'Package Groups',
+ 'tooltip' : 'All package groups in your configured layers',
+ 'filter' : { RecipeListModel.COL_TYPE : ['packagegroup'] },
'columns' : [{
- 'col_name' : 'Task name',
+ 'col_name' : 'Package group name',
'col_id' : RecipeListModel.COL_NAME,
'col_style': 'text',
'col_min' : 100,
@@ -236,7 +236,7 @@ class RecipeSelectionPage (HobPage):
# Check out a model which base on the column COL_FADE_INC,
# it's save the prev state of column COL_INC before do exclude_item
filter = { RecipeListModel.COL_FADE_INC : [True],
- RecipeListModel.COL_TYPE : ['recipe', 'task'] }
+ RecipeListModel.COL_TYPE : ['recipe', 'packagegroup'] }
new_model = self.recipe_model.tree_model(filter, excluded_items_ahead=True)
tree.set_model(new_model)