summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/msg.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-16 16:37:29 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-19 22:36:25 +0100
commitb6bfe1420517aa5aa190e17dca40ea70f09effd9 (patch)
tree2591a26f18290e8d929517df71f24645394c57fb /bitbake/lib/bb/msg.py
parenta45e1d54e19d4cd728e90df929b212e41ef70d4b (diff)
downloadopenembedded-core-b6bfe1420517aa5aa190e17dca40ea70f09effd9.tar.gz
openembedded-core-b6bfe1420517aa5aa190e17dca40ea70f09effd9.tar.bz2
openembedded-core-b6bfe1420517aa5aa190e17dca40ea70f09effd9.zip
bitbake: Switch to use subprocess for forking tasks and FAKEROOTENV to run shell and python under a fakeroot environment
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r--bitbake/lib/bb/msg.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 8d2bcce452..5bb30e8dd3 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -109,7 +109,7 @@ def debug(level, msgdomain, msg, fn = None):
if debug_level[msgdomain] >= level:
bb.event.fire(MsgDebug(msg), None)
- if not bb.event._ui_handlers:
+ if bb.event.useStdout:
print('DEBUG: %s' % (msg))
def note(level, msgdomain, msg, fn = None):
@@ -118,17 +118,18 @@ def note(level, msgdomain, msg, fn = None):
if level == 1 or verbose or debug_level[msgdomain] >= 1:
bb.event.fire(MsgNote(msg), None)
- if not bb.event._ui_handlers:
+ if bb.event.useStdout:
print('NOTE: %s' % (msg))
def warn(msgdomain, msg, fn = None):
bb.event.fire(MsgWarn(msg), None)
- if not bb.event._ui_handlers:
+ if bb.event.useStdout:
print('WARNING: %s' % (msg))
def error(msgdomain, msg, fn = None):
bb.event.fire(MsgError(msg), None)
- print('ERROR: %s' % (msg))
+ if bb.event.useStdout:
+ print('ERROR: %s' % (msg))
def fatal(msgdomain, msg, fn = None):
bb.event.fire(MsgFatal(msg), None)
@@ -137,5 +138,5 @@ def fatal(msgdomain, msg, fn = None):
def plain(msg, fn = None):
bb.event.fire(MsgPlain(msg), None)
- if not bb.event._ui_handlers:
+ if bb.event.useStdout:
print(msg)