Patchwork [bitbake-devel,1/3] bitbake/runqueue: fix python error on scenequeue task failure

login
register
mail settings
Submitter Paul Eggleton
Date March 1, 2012, 2:57 p.m.
Message ID <10b72664e950de1784fe864188a02bcd212bb151.1330613733.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/22541/
State New
Headers show

Comments

Paul Eggleton - March 1, 2012, 2:57 p.m.
Fixes a regression introduced in commit
e8a3499c95a6d4f2b8fed002fb9504733c5be3c6 which resulted in a
backtrace on setscene task failure due to trying to dereference
the setscene task ID twice.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bitbake/lib/bb/runqueue.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index d4b2cd4..d0e0892 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1606,8 +1606,7 @@  class RunQueueExecuteScenequeue(RunQueueExecute):
 
     def task_fail(self, task, result):
         self.stats.taskFailed()
-        index = self.rqdata.runq_setscene[task]
-        bb.event.fire(sceneQueueTaskFailed(index, self.stats, result, self), self.cfgData)
+        bb.event.fire(sceneQueueTaskFailed(task, self.stats, result, self), self.cfgData)
         self.scenequeue_notcovered.add(task)
         self.scenequeue_updatecounters(task)