From: Ed Bartosh Date: Thu, 3 Mar 2016 06:47:43 +0000 (-0800) Subject: toasterui: exit on final events X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b11f9d6d3c2eb615335901e1dcea699daf3afb4c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py index 2d443776ba8..728803d6246 100644 --- a/lib/bb/ui/toasterui.py +++ b/lib/bb/ui/toasterui.py @@ -388,7 +388,10 @@ def main(server, eventHandler, params): if isinstance(event, (bb.command.CommandCompleted, bb.command.CommandFailed, bb.command.CommandExit)): - errorcode = 0 + if params.observe_only: + errorcode = 0 + else: + main.shutdown = 1 continue