From 863f43a093a40c766f39dada36bb9fdb998bf6f9 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 20 Sep 2011 18:08:28 -0700 Subject: hob: fix opening of image output dir on image build completion Firstly, rather than polling the DEPLOY_DIR_IMAGE directory each time an image is built store the variable as a member of the hobeventhandler. Secondly emit the generic "build-complete" signal *after* the specialised "build-failed" or "build-succeeded" signals such that the appropriate state variables are set before we try and use them. (Bitbake rev: 043914a8b478fd4a7799acd1b44bdb3b0af2165a) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/runningbuild.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py') diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index bd0cbf0b1b..509590af35 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py @@ -242,14 +242,14 @@ class RunningBuild (gobject.GObject): Colors.OK, 0)) - # Emit a generic "build-complete" signal for things wishing to - # handle when the build is finished - self.emit("build-complete") # Emit the appropriate signal depending on the number of failures if (failures >= 1): self.emit ("build-failed") else: self.emit ("build-succeeded") + # Emit a generic "build-complete" signal for things wishing to + # handle when the build is finished + self.emit("build-complete") elif isinstance(event, bb.command.CommandFailed): if event.error.startswith("Exited with"): -- cgit v1.2.3-54-g00ecf