From 5be6bb070bd726e085ca8a69b80f65519d33ca1f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 7 Nov 2008 13:31:05 +0000 Subject: bitbake-dev: Handle fatal events correctly --- bitbake-dev/lib/bb/ui/knotty.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake-dev/lib/bb/ui') diff --git a/bitbake-dev/lib/bb/ui/knotty.py b/bitbake-dev/lib/bb/ui/knotty.py index 4b4d6b03af..7793a53099 100644 --- a/bitbake-dev/lib/bb/ui/knotty.py +++ b/bitbake-dev/lib/bb/ui/knotty.py @@ -71,6 +71,10 @@ def init(server, eventHandler): if event[0].startswith('bb.msg.MsgError'): return_value = 1 print 'ERROR: ' + event[1]['_message'] + break + if event[0].startswith('bb.msg.MsgFatal'): + return_value = 1 + print 'FATAL: ' + event[1]['_message'] continue if event[0].startswith('bb.build.TaskFailed'): return_value = 1 -- cgit v1.2.3