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>
This commit is contained in:
Richard Purdie 2013-09-13 17:33:30 +01:00
parent 0519d1ae13
commit ef7e3882a9
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class Command:
return False
def finishAsyncCommand(self, msg=None, code=None):
if msg:
if msg or msg == "":
bb.event.fire(CommandFailed(msg), self.cooker.event_data)
elif code:
bb.event.fire(CommandExit(code), self.cooker.event_data)