diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-12 17:00:16 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-15 09:47:09 +0100 |
commit | 1c30381714449891d974e8fbb6a9900ce3d5d97a (patch) | |
tree | 5f7fc8aa056423b2cff462837b86f816849f616c /bitbake/lib | |
parent | cf1cd31c5cb8968cfbfc43467ffea818d9b4fbab (diff) | |
download | poky-1c30381714449891d974e8fbb6a9900ce3d5d97a.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.
(Bitbake rev: bca739cdf55ba2a1c5e372e512d4f088345f245f)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/tasklistmodel.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py index 4da3e1eb40..203b6284ac 100644 --- a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py | |||
@@ -457,11 +457,8 @@ class TaskListModel(gtk.ListStore): | |||
457 | # resultant image, so filter cross and native recipes | 457 | # resultant image, so filter cross and native recipes |
458 | dep_included = self.contents_includes_name(dep) | 458 | dep_included = self.contents_includes_name(dep) |
459 | path = self.find_path_for_item(dep) | 459 | path = self.find_path_for_item(dep) |
460 | if not dep_included and not dep.endswith("-native") and not dep.endswith("-cross"): | 460 | if not dep_included and path: |
461 | if path: | 461 | self.include_item(path, name, image_contents) |
462 | self.include_item(path, name, image_contents) | ||
463 | else: | ||
464 | pass | ||
465 | # Set brought in by for any no longer orphan packages | 462 | # Set brought in by for any no longer orphan packages |
466 | elif dep_included and path: | 463 | elif dep_included and path: |
467 | if not self[path][self.COL_BINB]: | 464 | if not self[path][self.COL_BINB]: |