diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-03-02 22:47:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-07 17:23:04 +0000 |
commit | 621cbc86c9f29742c9b17b44122b1fd71a777c56 (patch) | |
tree | 13c08e8a22a73d224c8d55031c7059094d0b8a42 /bitbake/lib/bb/ui/toasterui.py | |
parent | 8e138b7f2a38b55a95452cf0f54bfd320e8c59af (diff) | |
download | poky-621cbc86c9f29742c9b17b44122b1fd71a777c56.tar.gz |
bitbake: toasterui: exit on final events
Toasterui exits only if bitbake observer shuts down.
In build mode it should exit when build is done.
Made toasterui exit on bb.command.CommandCompleted,
bb.command.CommandFailed and bb.command.CommandExit events
when it's running in build mode.
(Bitbake rev: b11f9d6d3c2eb615335901e1dcea699daf3afb4c)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index 2d443776ba..728803d624 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -388,7 +388,10 @@ def main(server, eventHandler, params): | |||
388 | if isinstance(event, (bb.command.CommandCompleted, | 388 | if isinstance(event, (bb.command.CommandCompleted, |
389 | bb.command.CommandFailed, | 389 | bb.command.CommandFailed, |
390 | bb.command.CommandExit)): | 390 | bb.command.CommandExit)): |
391 | errorcode = 0 | 391 | if params.observe_only: |
392 | errorcode = 0 | ||
393 | else: | ||
394 | main.shutdown = 1 | ||
392 | 395 | ||
393 | continue | 396 | continue |
394 | 397 | ||