command: Treat empty messages as failures, not CommandCompleted
PATCH 1/1 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 <[email protected]>
---
bitbake/lib/bb/command.py +1 -1
@@ -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)