summaryrefslogtreecommitdiffstats
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)
downloadpoky-39f6ec5f63ffe1c5fa5d2cc8f61b9585ab0688d9.tar.gz
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:
708 failures = 0 708 failures = 0
709 try: 709 try:
710 retval = rq.execute_runqueue() 710 retval = rq.execute_runqueue()
711 except runqueue.TaskFailure, fnids: 711 except runqueue.TaskFailure as exc:
712 for fnid in fnids: 712 for fnid in exc.args:
713 bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) 713 bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
714 failures = failures + 1 714 failures = failures + 1
715 retval = False 715 retval = False
@@ -744,8 +744,8 @@ class BBCooker:
744 failures = 0 744 failures = 0
745 try: 745 try:
746 retval = rq.execute_runqueue() 746 retval = rq.execute_runqueue()
747 except runqueue.TaskFailure, fnids: 747 except runqueue.TaskFailure as exc:
748 for fnid in fnids: 748 for fnid in exc.args:
749 bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) 749 bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
750 failures = failures + 1 750 failures = failures + 1
751 retval = False 751 retval = False