aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-01-09 15:11:59 +0000
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-03-24 18:32:19 +0000
commita9cfa3eacfc99550e1ad3f8bb61b2a0bc9b44332 (patch)
tree95e72f7b97769454a0d7b1b81737090b05a9c079 /lib
parent6f22e02614adcc642fe011e5e31ca4936d1cb19d (diff)
downloadbitbake-a9cfa3eacfc99550e1ad3f8bb61b2a0bc9b44332.tar.gz
toaster: clean exit on bb server shutdown
This patch adds the capability to have the Toaster UI detect when the Bitbake server exited and cleanly trigger a clean shutdown of the system through the toaster starting script. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/toasterui.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 453eaf948..37d6b1a0c 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -249,6 +249,10 @@ def main(server, eventHandler, params ):
buildinfohelper.store_license_manifest_path(event)
continue
+ if isinstance(event, bb.cooker.CookerExit):
+ # exit when the server exits
+ break
+
# ignore
if isinstance(event, (bb.event.BuildBase,
bb.event.StampUpdate,
@@ -258,8 +262,7 @@ def main(server, eventHandler, params ):
bb.event.OperationProgress,
bb.command.CommandFailed,
bb.command.CommandExit,
- bb.command.CommandCompleted,
- bb.cooker.CookerExit)):
+ bb.command.CommandCompleted)):
continue
if isinstance(event, bb.event.DepTreeGenerated):