summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-26 15:13:33 -0700
committerJoshua Lock <josh@linux.intel.com>2011-08-26 16:14:13 -0700
commit5e95098be1c1f92c2d72fb371c94bab31c46cf83 (patch)
tree98262cf5c8d0010d4f341eeb67bad7909ed951ce
parent0423587db09f6f28cf9d801f5657a84157f42dbe (diff)
downloadbitbake-5e95098be1c1f92c2d72fb371c94bab31c46cf83.tar.gz
ui/crumbs/tasklistmodel: don't add same item to binb column more than once
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/ui/crumbs/tasklistmodel.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/ui/crumbs/tasklistmodel.py b/lib/bb/ui/crumbs/tasklistmodel.py
index 5ff1f5a6b..cf9fc591d 100644
--- a/lib/bb/ui/crumbs/tasklistmodel.py
+++ b/lib/bb/ui/crumbs/tasklistmodel.py
@@ -441,8 +441,9 @@ class TaskListModel(gtk.ListStore):
self[item_path][self.COL_INC] = True
bin = self[item_path][self.COL_BINB].split(', ')
- bin.append(binb)
- self[item_path][self.COL_BINB] = ', '.join(bin).lstrip(', ')
+ if not binb in bin:
+ bin.append(binb)
+ self[item_path][self.COL_BINB] = ', '.join(bin).lstrip(', ')
# We want to do some magic with things which are brought in by the
# base image so tag them as so