diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-13 17:33:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-14 08:20:38 +0100 |
commit | ef7e3882a9fd173a22d3c378d91306cb609537d0 (patch) | |
tree | 057a484848848a87a10e26c19d7dacb2448ae2cd /bitbake/lib | |
parent | 0519d1ae13d2f01c2ab71a8458007901ab434732 (diff) | |
download | poky-ef7e3882a9fd173a22d3c378d91306cb609537d0.tar.gz |
bitbake: command: Treat empty messages as failures, not CommandCompleted
Empty messages should trigger CommandFailed, not CommandCompleted as
otherwise the exit code will be incorrect.
(Bitbake rev: 70a8ead31f9ffc987d9c6db61a926f7a9af8f8b1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 6c7b891930..f1abaf70d2 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -117,7 +117,7 @@ class Command: | |||
117 | return False | 117 | return False |
118 | 118 | ||
119 | def finishAsyncCommand(self, msg=None, code=None): | 119 | def finishAsyncCommand(self, msg=None, code=None): |
120 | if msg: | 120 | if msg or msg == "": |
121 | bb.event.fire(CommandFailed(msg), self.cooker.event_data) | 121 | bb.event.fire(CommandFailed(msg), self.cooker.event_data) |
122 | elif code: | 122 | elif code: |
123 | bb.event.fire(CommandExit(code), self.cooker.event_data) | 123 | bb.event.fire(CommandExit(code), self.cooker.event_data) |