diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-28 15:25:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-02 22:31:43 +0100 |
commit | fdece011d6e780ad55628cbb35b6580eca5d29d6 (patch) | |
tree | d76af24f38d88eee4c4d9b6aca5b691bc7195e8c | |
parent | 5f33a63fea9fc5de9e78eb6587f65b51d5450846 (diff) | |
download | ast2050-yocto-poky-fdece011d6e780ad55628cbb35b6580eca5d29d6.zip ast2050-yocto-poky-fdece011d6e780ad55628cbb35b6580eca5d29d6.tar.gz |
ui/crumbs/hobeventhandler: emit a signal when a command fails
If a CommandFailed event is seen emit a signal with the error message.
(Bitbake rev: 15cc4fe5051dcb6ac5915e10228b5f3d3ed845bd)
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/hobeventhandler.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 1163cba..0b5b318 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py @@ -54,11 +54,13 @@ class HobHandler(gobject.GObject): gobject.TYPE_NONE, (gobject.TYPE_STRING, gobject.TYPE_STRING,)), + "command-failed" : (gobject.SIGNAL_RUN_LAST, + gobject.TYPE_NONE, (gobject.TYPE_STRING,)), "reload-triggered" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_STRING, - gobject.TYPE_STRING)), + gobject.TYPE_STRING,)), } (CFG_PATH_LOCAL, CFG_PATH_HOB, CFG_PATH_LAYERS, CFG_FILES_DISTRO, CFG_FILES_MACH, CFG_FILES_SDK, FILES_MATCH_CLASS, GENERATE_TGTS, REPARSE_FILES, BUILD_IMAGE) = range(10) @@ -172,6 +174,7 @@ class HobHandler(gobject.GObject): self.current_phase = None self.run_next_command() elif isinstance(event, bb.command.CommandFailed): + self.emit("command-failed", event.error) elif isinstance(event, bb.event.CacheLoadStarted): self.current_phase = "cache loading" bb.ui.crumbs.hobeventhandler.progress_total = event.total |