summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-13 17:33:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-13 17:45:37 +0100
commit70a8ead31f9ffc987d9c6db61a926f7a9af8f8b1 (patch)
tree8018b56363626a95db0fc3c5ee22b933b85165b3
parentdd15648fc2654b8d7c3e00ea7ab3dbf04f24f24b (diff)
downloadbitbake-70a8ead31f9ffc987d9c6db61a926f7a9af8f8b1.tar.gz
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 <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 6c7b89193..f1abaf70d 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)