From 70a8ead31f9ffc987d9c6db61a926f7a9af8f8b1 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 13 Sep 2013 17:33:30 +0100 Subject: 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 --- lib/bb/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.2.3-korg