summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index e85d7c4f3e..b7031ab6d3 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -96,6 +96,12 @@ class TaskFailed(TaskBase):
96 self.errprinted = errprinted 96 self.errprinted = errprinted
97 super(TaskFailed, self).__init__(task, metadata) 97 super(TaskFailed, self).__init__(task, metadata)
98 98
99class TaskFailedSilent(TaskBase):
100 """Task execution failed (silently)"""
101 def __init__(self, task, logfile, metadata):
102 self.logfile = logfile
103 super(TaskFailedSilent, self).__init__(task, metadata)
104
99class TaskInvalid(TaskBase): 105class TaskInvalid(TaskBase):
100 106
101 def __init__(self, task, metadata): 107 def __init__(self, task, metadata):
@@ -334,7 +340,9 @@ def _exec_task(fn, task, d, quieterr):
334 for func in (postfuncs or '').split(): 340 for func in (postfuncs or '').split():
335 exec_func(func, localdata) 341 exec_func(func, localdata)
336 except FuncFailed as exc: 342 except FuncFailed as exc:
337 if not quieterr: 343 if quieterr:
344 event.fire(TaskFailedSilent(task, logfn, localdata), localdata)
345 else:
338 errprinted = errchk.triggered 346 errprinted = errchk.triggered
339 logger.error(str(exc)) 347 logger.error(str(exc))
340 event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata) 348 event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata)