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

In the same vein as a similar, earlier, patch where I missed the second
loop which modifies the binb column.

Fixes [YOCTO #1420]

(Bitbake rev: 6ad1103b5fd592afa9ea03ef5a0d706604cc0e0f)

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-29 16:29:06 -07:00
committed by Richard Purdie
parent 76b228c602
commit e2a3f28330

View File

@@ -462,8 +462,9 @@ class TaskListModel(gtk.ListStore):
continue
if dep_included:
bin = self[path][self.COL_BINB].split(', ')
bin.append(name)
self[path][self.COL_BINB] = ', '.join(bin).lstrip(', ')
if not name in bin:
bin.append(name)
self[path][self.COL_BINB] = ', '.join(bin).lstrip(', ')
else:
self.include_item(path, binb=name, image_contents=image_contents)