From 2cc5f517224cee8e2dd2b045a277423ce66ec886 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Thu, 27 Sep 2012 17:12:59 +0300 Subject: hob/recipeselectionpage: recipes should not be shown brought in by themselves [YOCTO #3107] Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- lib/bb/ui/crumbs/hoblistmodel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bb/ui/crumbs/hoblistmodel.py b/lib/bb/ui/crumbs/hoblistmodel.py index 15894d378..fe58adfbc 100644 --- a/lib/bb/ui/crumbs/hoblistmodel.py +++ b/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): -- cgit 1.2.3-korg