summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-01-09 15:11:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-25 11:17:34 +0000
commit70f1a3db5e102cff658e51007e0cac5207f197bb (patch)
treeea3db15a1dd9ab0a7d75b0c30c3608d51e0e805e /bitbake/lib/bb/ui/toasterui.py
parent1913a1751d50c6e6011faea57999a4d342963de9 (diff)
downloadpoky-70f1a3db5e102cff658e51007e0cac5207f197bb.tar.gz
poky-70f1a3db5e102cff658e51007e0cac5207f197bb.tar.bz2
poky-70f1a3db5e102cff658e51007e0cac5207f197bb.zip
bitbake: 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. (Bitbake rev: a9cfa3eacfc99550e1ad3f8bb61b2a0bc9b44332) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index 453eaf9485..37d6b1a0cf 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/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):