diff options
| author | Joshua Lock <josh@linux.intel.com> | 2011-09-20 18:08:28 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-21 14:07:30 +0100 |
| commit | 863f43a093a40c766f39dada36bb9fdb998bf6f9 (patch) | |
| tree | 585e59168bcdbad5e9ac3a53925580ccc34d224f /bitbake/lib/bb/ui/crumbs/runningbuild.py | |
| parent | 7dc449595123a5c96d1ac28578b157d4348c9b31 (diff) | |
| download | poky-863f43a093a40c766f39dada36bb9fdb998bf6f9.tar.gz | |
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 <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): | |||
| 242 | Colors.OK, | 242 | Colors.OK, |
| 243 | 0)) | 243 | 0)) |
| 244 | 244 | ||
| 245 | # Emit a generic "build-complete" signal for things wishing to | ||
| 246 | # handle when the build is finished | ||
| 247 | self.emit("build-complete") | ||
| 248 | # Emit the appropriate signal depending on the number of failures | 245 | # Emit the appropriate signal depending on the number of failures |
| 249 | if (failures >= 1): | 246 | if (failures >= 1): |
| 250 | self.emit ("build-failed") | 247 | self.emit ("build-failed") |
| 251 | else: | 248 | else: |
| 252 | self.emit ("build-succeeded") | 249 | self.emit ("build-succeeded") |
| 250 | # Emit a generic "build-complete" signal for things wishing to | ||
| 251 | # handle when the build is finished | ||
| 252 | self.emit("build-complete") | ||
| 253 | 253 | ||
| 254 | elif isinstance(event, bb.command.CommandFailed): | 254 | elif isinstance(event, bb.command.CommandFailed): |
| 255 | if event.error.startswith("Exited with"): | 255 | if event.error.startswith("Exited with"): |
