From 70f1a3db5e102cff658e51007e0cac5207f197bb Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 9 Jan 2014 15:11:59 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/toasterui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/ui/toasterui.py') 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): -- cgit v1.2.3-54-g00ecf