[bitbake-devel] [PATCH 5/5] bb/ui/crumbs/tasklistmodel: simplify conditional in include_item
Joshua Lock
josh at linux.intel.com
Sat Aug 13 01:10:55 UTC 2011
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 at linux.intel.com>
---
lib/bb/ui/crumbs/tasklistmodel.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/bb/ui/crumbs/tasklistmodel.py b/lib/bb/ui/crumbs/tasklistmodel.py
index 4da3e1e..203b628 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]:
--
1.7.6
More information about the bitbake-devel
mailing list