Patchwork [bitbake-devel] hob/recipeselectionpage: recipes should not be shown brought in by themselves

login
register
mail settings
Submitter Cristiana Voicu
Date Sept. 27, 2012, 2:12 p.m.
Message ID <1348755179-5257-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/37359/
State New
Headers show

Comments

Cristiana Voicu - Sept. 27, 2012, 2:12 p.m.
[YOCTO #3107]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hoblistmodel.py |    4 ++++
 1 file changed, 4 insertions(+)
Richard Purdie - Sept. 27, 2012, 3:44 p.m.
On Thu, 2012-09-27 at 17:12 +0300, Cristiana Voicu wrote:
> [YOCTO #3107]
> Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
> ---
>  bitbake/lib/bb/ui/crumbs/hoblistmodel.py |    4 ++++
>  1 file changed, 4 insertions(+)


Merged to master, thanks.

Richard

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index 15894d3..fe58adf 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -672,6 +672,10 @@  class RecipeListModel(gtk.ListStore):
                         self[dep_path][self.COL_BINB] = ', '.join(dep_bin).lstrip(', ')
                 elif not dep_included:
                     self.include_item(dep_path, binb=item_name, image_contents=image_contents)
+        dep_bin = self[item_path][self.COL_BINB].split(', ')
+        if self[item_path][self.COL_NAME] in dep_bin:
+            dep_bin.remove(self[item_path][self.COL_NAME])
+        self[item_path][self.COL_BINB] = ', '.join(dep_bin).lstrip(', ')
 
     def exclude_item(self, item_path):
         if not self.path_included(item_path):