summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-23 15:06:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-23 15:06:34 +0000
commit91c0b3a2e6d006224d8d2b661ca7528e9d036f1b (patch)
tree98023118a5ac3e6b6bed9f0df0b1fca6b4bc1a57
parent101b599110f7bc29f52a14a968f30323aeb797ca (diff)
downloadpoky-91c0b3a2e6d006224d8d2b661ca7528e9d036f1b.tar.gz
bitbake/build.py: Fix TaskFailed parameters
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 07bd35afcc..a7664bd36d 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -321,7 +321,7 @@ def _exec_task(fn, task, d, quieterr):
321 except FuncFailed as exc: 321 except FuncFailed as exc:
322 if not quieterr: 322 if not quieterr:
323 logger.error(str(exc)) 323 logger.error(str(exc))
324 event.fire(TaskFailed(exc.name, logfn, localdata), localdata) 324 event.fire(TaskFailed(task, logfn, localdata), localdata)
325 return 1 325 return 1
326 finally: 326 finally:
327 sys.stdout.flush() 327 sys.stdout.flush()
@@ -364,7 +364,7 @@ def exec_task(fn, task, d):
364 if not quieterr: 364 if not quieterr:
365 logger.error("Build of %s failed" % (task)) 365 logger.error("Build of %s failed" % (task))
366 logger.error(format_exc()) 366 logger.error(format_exc())
367 failedevent = TaskFailed("Task Failed", None, task, d) 367 failedevent = TaskFailed(task, None, d)
368 event.fire(failedevent, d) 368 event.fire(failedevent, d)
369 return 1 369 return 1
370 370