summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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
parent1913a1751d50c6e6011faea57999a4d342963de9 (diff)
downloadpoky-70f1a3db5e102cff658e51007e0cac5207f197bb.tar.gz
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')
-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 ):
249 buildinfohelper.store_license_manifest_path(event) 249 buildinfohelper.store_license_manifest_path(event)
250 continue 250 continue
251 251
252 if isinstance(event, bb.cooker.CookerExit):
253 # exit when the server exits
254 break
255
252 # ignore 256 # ignore
253 if isinstance(event, (bb.event.BuildBase, 257 if isinstance(event, (bb.event.BuildBase,
254 bb.event.StampUpdate, 258 bb.event.StampUpdate,
@@ -258,8 +262,7 @@ def main(server, eventHandler, params ):
258 bb.event.OperationProgress, 262 bb.event.OperationProgress,
259 bb.command.CommandFailed, 263 bb.command.CommandFailed,
260 bb.command.CommandExit, 264 bb.command.CommandExit,
261 bb.command.CommandCompleted, 265 bb.command.CommandCompleted)):
262 bb.cooker.CookerExit)):
263 continue 266 continue
264 267
265 if isinstance(event, bb.event.DepTreeGenerated): 268 if isinstance(event, bb.event.DepTreeGenerated):