ui/crumbs/tasklistmodel: don't add same item to binb column more than once

(Bitbake rev: 5e95098be1c1f92c2d72fb371c94bab31c46cf83)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock 2011-08-26 15:13:33 -07:00 committed by Richard Purdie
parent 744f58fbfd
commit cd51ea63e6
1 changed files with 3 additions and 2 deletions

View File

@ -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