diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-16 16:37:29 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 22:36:25 +0100 |
commit | b6bfe1420517aa5aa190e17dca40ea70f09effd9 (patch) | |
tree | 2591a26f18290e8d929517df71f24645394c57fb /bitbake/lib/bb/msg.py | |
parent | a45e1d54e19d4cd728e90df929b212e41ef70d4b (diff) | |
download | poky-b6bfe1420517aa5aa190e17dca40ea70f09effd9.tar.gz |
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.py | 11 |
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): | |||
109 | 109 | ||
110 | if debug_level[msgdomain] >= level: | 110 | if debug_level[msgdomain] >= level: |
111 | bb.event.fire(MsgDebug(msg), None) | 111 | bb.event.fire(MsgDebug(msg), None) |
112 | if not bb.event._ui_handlers: | 112 | if bb.event.useStdout: |
113 | print('DEBUG: %s' % (msg)) | 113 | print('DEBUG: %s' % (msg)) |
114 | 114 | ||
115 | def note(level, msgdomain, msg, fn = None): | 115 | def note(level, msgdomain, msg, fn = None): |
@@ -118,17 +118,18 @@ def note(level, msgdomain, msg, fn = None): | |||
118 | 118 | ||
119 | if level == 1 or verbose or debug_level[msgdomain] >= 1: | 119 | if level == 1 or verbose or debug_level[msgdomain] >= 1: |
120 | bb.event.fire(MsgNote(msg), None) | 120 | bb.event.fire(MsgNote(msg), None) |
121 | if not bb.event._ui_handlers: | 121 | if bb.event.useStdout: |
122 | print('NOTE: %s' % (msg)) | 122 | print('NOTE: %s' % (msg)) |
123 | 123 | ||
124 | def warn(msgdomain, msg, fn = None): | 124 | def warn(msgdomain, msg, fn = None): |
125 | bb.event.fire(MsgWarn(msg), None) | 125 | bb.event.fire(MsgWarn(msg), None) |
126 | if not bb.event._ui_handlers: | 126 | if bb.event.useStdout: |
127 | print('WARNING: %s' % (msg)) | 127 | print('WARNING: %s' % (msg)) |
128 | 128 | ||
129 | def error(msgdomain, msg, fn = None): | 129 | def error(msgdomain, msg, fn = None): |
130 | bb.event.fire(MsgError(msg), None) | 130 | bb.event.fire(MsgError(msg), None) |
131 | print('ERROR: %s' % (msg)) | 131 | if bb.event.useStdout: |
132 | print('ERROR: %s' % (msg)) | ||
132 | 133 | ||
133 | def fatal(msgdomain, msg, fn = None): | 134 | def fatal(msgdomain, msg, fn = None): |
134 | bb.event.fire(MsgFatal(msg), None) | 135 | bb.event.fire(MsgFatal(msg), None) |
@@ -137,5 +138,5 @@ def fatal(msgdomain, msg, fn = None): | |||
137 | 138 | ||
138 | def plain(msg, fn = None): | 139 | def plain(msg, fn = None): |
139 | bb.event.fire(MsgPlain(msg), None) | 140 | bb.event.fire(MsgPlain(msg), None) |
140 | if not bb.event._ui_handlers: | 141 | if bb.event.useStdout: |
141 | print(msg) | 142 | print(msg) |