bitbake: Correctly route events from the worker to the server

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-20 12:25:19 +01:00
parent 9708f9cba7
commit 616e75523b
5 changed files with 24 additions and 8 deletions

View File

@@ -133,7 +133,9 @@ def error(msgdomain, msg, fn = None):
def fatal(msgdomain, msg, fn = None):
bb.event.fire(MsgFatal(msg), None)
print('FATAL: %s' % (msg))
if bb.event.useStdout:
print('FATAL: %s' % (msg))
sys.exit(1)
def plain(msg, fn = None):