diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/tasklistmodel.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py index e6af74f312..b9fde9d89b 100644 --- a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py | |||
@@ -369,22 +369,21 @@ class TaskListModel(gtk.ListStore): | |||
369 | 369 | ||
370 | """ | 370 | """ |
371 | Find the name of an item in the image contents which depends on the item | 371 | Find the name of an item in the image contents which depends on the item |
372 | at contents_path returns either an item name (str) or None | 372 | name. |
373 | NOTE: | 373 | Returns either an item name (str) or None |
374 | contents_path must be a path in the self.contents gtk.TreeModel | ||
375 | """ | 374 | """ |
376 | def find_alt_dependency(self, name): | 375 | def find_alt_dependency(self, name): |
377 | it = self.get_iter_first() | 376 | it = self.contents.get_iter_first() |
378 | while it: | 377 | while it: |
379 | # iterate all items in the model | 378 | # iterate all items in the contents model |
380 | path = self.get_path(it) | 379 | path = self.contents.get_path(it) |
381 | deps = self[path][self.COL_DEPS] | 380 | deps = self.contents[path][self.COL_DEPS] |
382 | itname = self[path][self.COL_NAME] | 381 | itname = self.contents[path][self.COL_NAME] |
383 | inc = self[path][self.COL_INC] | 382 | inc = self.contents[path][self.COL_INC] |
384 | if itname != name and inc and deps.count(name) > 0: | 383 | if itname != name and inc and deps.count(name) > 0: |
385 | # if this item depends on the item, return this items name | 384 | # if this item depends on the item, return this items name |
386 | return itname | 385 | return itname |
387 | it = self.iter_next(it) | 386 | it = self.contents.iter_next(it) |
388 | return "" | 387 | return "" |
389 | 388 | ||
390 | """ | 389 | """ |