summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-06 21:58:07 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:46 +0000
commite5624a4ed30c33440fd2e421aa93bda0476fae5a (patch)
tree1723fa2ae5a988e645b3f4a9a0e2e1c1991236bb /bitbake
parent7ffd6f88b8b08e02665a3b29760e58c080322b44 (diff)
downloadpoky-e5624a4ed30c33440fd2e421aa93bda0476fae5a.tar.gz
knotty: use enumerate for task waiting
(Bitbake rev: 89ce8df075ac8c9a5478c86405e6e6b60346a51c) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/knotty.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 00be2f8448..21160bff5f 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -118,10 +118,8 @@ def init(server, eventHandler):
118 activetasks, failedtasks = helper.getTasks() 118 activetasks, failedtasks = helper.getTasks()
119 if activetasks: 119 if activetasks:
120 print("Waiting for %s active tasks to finish:" % len(activetasks)) 120 print("Waiting for %s active tasks to finish:" % len(activetasks))
121 tasknum = 1 121 for tasknum, task in enumerate(activetasks):
122 for task in activetasks:
123 print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task)) 122 print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
124 tasknum = tasknum + 1
125 123
126 if isinstance(event, logging.LogRecord): 124 if isinstance(event, logging.LogRecord):
127 if event.levelno is logging.CRITICAL or event.levelno is logging.ERROR: 125 if event.levelno is logging.CRITICAL or event.levelno is logging.ERROR: