diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index b34bdbefd4..1db9c44295 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -42,6 +42,9 @@ class HobHandler(gobject.GObject): | |||
42 | "command-failed" : (gobject.SIGNAL_RUN_LAST, | 42 | "command-failed" : (gobject.SIGNAL_RUN_LAST, |
43 | gobject.TYPE_NONE, | 43 | gobject.TYPE_NONE, |
44 | (gobject.TYPE_STRING,)), | 44 | (gobject.TYPE_STRING,)), |
45 | "sanity-failed" : (gobject.SIGNAL_RUN_LAST, | ||
46 | gobject.TYPE_NONE, | ||
47 | (gobject.TYPE_STRING,)), | ||
45 | "generating-data" : (gobject.SIGNAL_RUN_LAST, | 48 | "generating-data" : (gobject.SIGNAL_RUN_LAST, |
46 | gobject.TYPE_NONE, | 49 | gobject.TYPE_NONE, |
47 | ()), | 50 | ()), |
@@ -170,6 +173,9 @@ class HobHandler(gobject.GObject): | |||
170 | elif isinstance(event, bb.event.SanityCheckPassed): | 173 | elif isinstance(event, bb.event.SanityCheckPassed): |
171 | self.run_next_command() | 174 | self.run_next_command() |
172 | 175 | ||
176 | elif isinstance(event, bb.event.SanityCheckFailed): | ||
177 | self.emit("sanity-failed", event._msg) | ||
178 | |||
173 | elif isinstance(event, logging.LogRecord): | 179 | elif isinstance(event, logging.LogRecord): |
174 | if event.levelno >= logging.ERROR: | 180 | if event.levelno >= logging.ERROR: |
175 | self.error_msg += event.msg + '\n' | 181 | self.error_msg += event.msg + '\n' |