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.

(Bitbake rev: bca739cdf55ba2a1c5e372e512d4f088345f245f)

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-12 17:00:16 -07:00 committed by Richard Purdie
parent cf1cd31c5c
commit 1c30381714
1 changed files with 2 additions and 5 deletions

View File

@ -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]: