diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-02 18:12:33 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-03 17:51:57 +0100 |
commit | 8c21a0d66c3b68596327a53ed9ab63c0cca9e782 (patch) | |
tree | 088df0f3f7a84ef6b1ba0802b848dadf78c4921c | |
parent | 847d38ed847f3e058a22648cd80137ef72aed93e (diff) | |
download | poky-8c21a0d66c3b68596327a53ed9ab63c0cca9e782.tar.gz |
bb/ui/crumbs/runningbuild: emit signal when command fails with exit signal
Emit the generic build-complete signal when a command fails with an exit
signal enabling the UI to update itself accordingly.
Addresses [YOCTO #1265]
(Bitbake rev: 25ec13075855f7e321a9763682a8cd4ca09203cd)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 2399ff3943..bf72e2a725 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -239,6 +239,12 @@ class RunningBuild (gobject.GObject): | |||
239 | else: | 239 | else: |
240 | self.emit ("build-succeeded") | 240 | self.emit ("build-succeeded") |
241 | 241 | ||
242 | elif isinstance(event, bb.command.CommandFailed): | ||
243 | if event.error.startswith("Exited with"): | ||
244 | # If the command fails with an exit code we're done, emit the | ||
245 | # generic signal for the UI to notify the user | ||
246 | self.emit("build-complete") | ||
247 | |||
242 | elif isinstance(event, bb.event.CacheLoadStarted) and pbar: | 248 | elif isinstance(event, bb.event.CacheLoadStarted) and pbar: |
243 | pbar.set_title("Loading cache") | 249 | pbar.set_title("Loading cache") |
244 | self.progress_total = event.total | 250 | self.progress_total = event.total |