summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-12 17:00:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-15 09:33:10 +0100
commitbca739cdf55ba2a1c5e372e512d4f088345f245f (patch)
tree4423174a3d8ae8303d90febcd4698965bca751e8
parent06abfc9caf7f237a6bb762fb3ae9f3dec99688ca (diff)
downloadbitbake-bca739cdf55ba2a1c5e372e512d4f088345f245f.tar.gz
bb/ui/crumbs/tasklistmodel: simplify conditional in include_item
No need to check if the name ends with -native or -cross as path will be None in this instance. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/ui/crumbs/tasklistmodel.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bb/ui/crumbs/tasklistmodel.py b/lib/bb/ui/crumbs/tasklistmodel.py
index 4da3e1eb4..203b6284a 100644
--- a/lib/bb/ui/crumbs/tasklistmodel.py
+++ b/lib/bb/ui/crumbs/tasklistmodel.py
@@ -457,11 +457,8 @@ class TaskListModel(gtk.ListStore):
# resultant image, so filter cross and native recipes
dep_included = self.contents_includes_name(dep)
path = self.find_path_for_item(dep)
- if not dep_included and not dep.endswith("-native") and not dep.endswith("-cross"):
- if path:
- self.include_item(path, name, image_contents)
- else:
- pass
+ if not dep_included and path:
+ self.include_item(path, name, image_contents)
# Set brought in by for any no longer orphan packages
elif dep_included and path:
if not self[path][self.COL_BINB]: