diff options
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index d81b8a989c..0c53843149 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -219,6 +219,7 @@ def main(server, eventHandler, params ): | |||
219 | if isinstance(event, (bb.command.CommandCompleted, | 219 | if isinstance(event, (bb.command.CommandCompleted, |
220 | bb.command.CommandFailed, | 220 | bb.command.CommandFailed, |
221 | bb.command.CommandExit)): | 221 | bb.command.CommandExit)): |
222 | errorcode = 0 | ||
222 | if (isinstance(event, bb.command.CommandFailed)): | 223 | if (isinstance(event, bb.command.CommandFailed)): |
223 | event.levelno = format.ERROR | 224 | event.levelno = format.ERROR |
224 | event.msg = "Command Failed " + event.error | 225 | event.msg = "Command Failed " + event.error |
@@ -226,10 +227,10 @@ def main(server, eventHandler, params ): | |||
226 | event.lineno = 0 | 227 | event.lineno = 0 |
227 | buildinfohelper.store_log_event(event) | 228 | buildinfohelper.store_log_event(event) |
228 | errors += 1 | 229 | errors += 1 |
230 | errorcode = 1 | ||
229 | 231 | ||
230 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) | 232 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) |
231 | buildinfohelper.close() | 233 | buildinfohelper.close(errorcode) |
232 | |||
233 | 234 | ||
234 | # we start a new build info | 235 | # we start a new build info |
235 | if buildinfohelper.brbe is not None: | 236 | if buildinfohelper.brbe is not None: |