summaryrefslogtreecommitdiffstats
path: root/bitbake-dev/lib/bb/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake-dev/lib/bb/build.py')
-rw-r--r--bitbake-dev/lib/bb/build.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake-dev/lib/bb/build.py b/bitbake-dev/lib/bb/build.py
index 65e8118b4f..6d80b4b549 100644
--- a/bitbake-dev/lib/bb/build.py
+++ b/bitbake-dev/lib/bb/build.py
@@ -55,7 +55,7 @@ class TaskBase(event.Event):
55 def __init__(self, t, d ): 55 def __init__(self, t, d ):
56 self._task = t 56 self._task = t
57 self._package = bb.data.getVar("PF", d, 1) 57 self._package = bb.data.getVar("PF", d, 1)
58 event.Event.__init__(self, d) 58 event.Event.__init__(self)
59 self._message = "package %s: task %s: %s" % (bb.data.getVar("PF", d, 1), t, bb.event.getName(self)[4:]) 59 self._message = "package %s: task %s: %s" % (bb.data.getVar("PF", d, 1), t, bb.event.getName(self)[4:])
60 60
61 def getTask(self): 61 def getTask(self):
@@ -286,9 +286,9 @@ def exec_task(task, d):
286 data.setVar('OVERRIDES', 'task-%s:%s' % (task[3:], old_overrides), localdata) 286 data.setVar('OVERRIDES', 'task-%s:%s' % (task[3:], old_overrides), localdata)
287 data.update_data(localdata) 287 data.update_data(localdata)
288 data.expandKeys(localdata) 288 data.expandKeys(localdata)
289 event.fire(TaskStarted(task, localdata)) 289 event.fire(TaskStarted(task, localdata), localdata)
290 exec_func(task, localdata) 290 exec_func(task, localdata)
291 event.fire(TaskSucceeded(task, localdata)) 291 event.fire(TaskSucceeded(task, localdata), localdata)
292 except FuncFailed, message: 292 except FuncFailed, message:
293 # Try to extract the optional logfile 293 # Try to extract the optional logfile
294 try: 294 try:
@@ -298,7 +298,7 @@ def exec_task(task, d):
298 msg = message 298 msg = message
299 bb.msg.note(1, bb.msg.domain.Build, "Task failed: %s" % message ) 299 bb.msg.note(1, bb.msg.domain.Build, "Task failed: %s" % message )
300 failedevent = TaskFailed(msg, logfile, task, d) 300 failedevent = TaskFailed(msg, logfile, task, d)
301 event.fire(failedevent) 301 event.fire(failedevent, d)
302 raise EventException("Function failed in task: %s" % message, failedevent) 302 raise EventException("Function failed in task: %s" % message, failedevent)
303 303
304 # make stamp, or cause event and raise exception 304 # make stamp, or cause event and raise exception