diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-09 17:21:44 -0700 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2011-08-10 18:10:55 -0700 |
commit | 396bbc220604c19ced4add30dd17f7f22d5e0022 (patch) | |
tree | dc2a7a34491593a72c051175da0e9098a2241bc6 | |
parent | 93bae8f223cdeb7b7e31c309b5d785b97ae1c2ac (diff) | |
download | bitbake-396bbc220604c19ced4add30dd17f7f22d5e0022.tar.gz |
bb/ui/crumbs/tasklistmodel: don't include an item in its own depends
This causes the simple removal algorithm to perform needless circular logic
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r-- | lib/bb/ui/crumbs/tasklistmodel.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/tasklistmodel.py b/lib/bb/ui/crumbs/tasklistmodel.py index aec80e24d..7a463a6d4 100644 --- a/lib/bb/ui/crumbs/tasklistmodel.py +++ b/lib/bb/ui/crumbs/tasklistmodel.py @@ -237,6 +237,9 @@ class TaskListModel(gtk.ListStore): # uniquify the list of depends depends = self.squish(depends) + # remove circular dependencies + if name in depends: + depends.remove(name) deps = " ".join(depends) if name.count('task-') > 0: |