1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

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>
This commit is contained in:
Alexandru DAMIAN
2014-01-09 15:11:59 +00:00
committed by Richard Purdie
parent 1913a1751d
commit 70f1a3db5e
2 changed files with 31 additions and 4 deletions
+5 -2
View File
@@ -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):