summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
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/lib/bb
parent7ffd6f88b8b08e02665a3b29760e58c080322b44 (diff)
downloadopenembedded-core-e5624a4ed30c33440fd2e421aa93bda0476fae5a.tar.gz
openembedded-core-e5624a4ed30c33440fd2e421aa93bda0476fae5a.tar.bz2
openembedded-core-e5624a4ed30c33440fd2e421aa93bda0476fae5a.zip
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/lib/bb')
-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):
activetasks, failedtasks = helper.getTasks()
if activetasks:
print("Waiting for %s active tasks to finish:" % len(activetasks))
- tasknum = 1
- for task in activetasks:
+ for tasknum, task in enumerate(activetasks):
print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
- tasknum = tasknum + 1
if isinstance(event, logging.LogRecord):
if event.levelno is logging.CRITICAL or event.levelno is logging.ERROR: