From ed15be3313681c6e4cd7185e285a77ec37dc8750 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 30 Aug 2011 09:31:05 -0700 Subject: ui/crumbs/tasklistmodel: remove unnecessary check Cheaper to set COL_INC to True regardless of whether it's already set. (Bitbake rev: 12c6f98ba7a68baeeaee00594d910e1be8d55d87) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/tasklistmodel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py index 14a611f5e4..790631fc98 100644 --- a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py @@ -436,9 +436,8 @@ class TaskListModel(gtk.ListStore): def include_item(self, item_path, binb="", image_contents=False): item_name = self[item_path][self.COL_NAME] item_deps = self[item_path][self.COL_DEPS] - item_inc = self[item_path][self.COL_INC] - if not item_inc: - self[item_path][self.COL_INC] = True + + self[item_path][self.COL_INC] = True item_bin = self[item_path][self.COL_BINB].split(', ') if not binb in item_bin: -- cgit v1.2.3-54-g00ecf