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:
parent
cf1cd31c5c
commit
1c30381714
|
@ -457,11 +457,8 @@ class TaskListModel(gtk.ListStore):
|
||||||
# resultant image, so filter cross and native recipes
|
# resultant image, so filter cross and native recipes
|
||||||
dep_included = self.contents_includes_name(dep)
|
dep_included = self.contents_includes_name(dep)
|
||||||
path = self.find_path_for_item(dep)
|
path = self.find_path_for_item(dep)
|
||||||
if not dep_included and not dep.endswith("-native") and not dep.endswith("-cross"):
|
if not dep_included and path:
|
||||||
if path:
|
self.include_item(path, name, image_contents)
|
||||||
self.include_item(path, name, image_contents)
|
|
||||||
else:
|
|
||||||
pass
|
|
||||||
# Set brought in by for any no longer orphan packages
|
# Set brought in by for any no longer orphan packages
|
||||||
elif dep_included and path:
|
elif dep_included and path:
|
||||||
if not self[path][self.COL_BINB]:
|
if not self[path][self.COL_BINB]:
|
||||||
|
|
Loading…
Reference in New Issue