From: Richard Purdie Date: Fri, 13 Sep 2013 16:33:30 +0000 (+0100) Subject: command: Treat empty messages as failures, not CommandCompleted X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70a8ead31f9ffc987d9c6db61a926f7a9af8f8b1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git command: Treat empty messages as failures, not CommandCompleted Empty messages should trigger CommandFailed, not CommandCompleted as otherwise the exit code will be incorrect. Signed-off-by: Richard Purdie --- diff --git a/lib/bb/command.py b/lib/bb/command.py index 6c7b8919301..f1abaf70d2d 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -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)