summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-10 15:09:55 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:36 +0100
commit39f6ec5f63ffe1c5fa5d2cc8f61b9585ab0688d9 (patch)
tree509038b2d1791d208485773860101afafde78935 /bitbake
parentef835bf33a9c5bddb5b3c7951178f86ed29a37f4 (diff)
downloadopenembedded-core-39f6ec5f63ffe1c5fa5d2cc8f61b9585ab0688d9.tar.gz
openembedded-core-39f6ec5f63ffe1c5fa5d2cc8f61b9585ab0688d9.tar.bz2
openembedded-core-39f6ec5f63ffe1c5fa5d2cc8f61b9585ab0688d9.zip
cooker: Kill __getitem__ usage on exception objects (python 3 prep)
(Bitbake rev: 1239df8b82ddcd607630da5a888ca83051a22fa8) 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/cooker.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 2b38065de2..8f79c4f72c 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -708,8 +708,8 @@ class BBCooker:
failures = 0
try:
retval = rq.execute_runqueue()
- except runqueue.TaskFailure, fnids:
- for fnid in fnids:
+ except runqueue.TaskFailure as exc:
+ for fnid in exc.args:
bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
failures = failures + 1
retval = False
@@ -744,8 +744,8 @@ class BBCooker:
failures = 0
try:
retval = rq.execute_runqueue()
- except runqueue.TaskFailure, fnids:
- for fnid in fnids:
+ except runqueue.TaskFailure as exc:
+ for fnid in exc.args:
bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
failures = failures + 1
retval = False