From e228289bf0113218a89a56a8cd2ad3b51ff1b238 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 13 Feb 2012 11:41:33 +0000 Subject: bitbake/knotty: ensure CommandFailed increases error count CommandFailed already sets the return code, so we print out the error summary message, however we don't increase the error count so it is usually zero in this case. As we are actually showing an ERROR message, increment the error count so that the summary makes sense. (Bitbake rev: aeb71c3ca65dc42015c29c0e4cac050bfbcb51a5) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index a0bb1275ad..9881d828d1 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -203,6 +203,7 @@ def main(server, eventHandler): if isinstance(event, bb.command.CommandFailed): return_value = event.exitcode + errors = errors + 1 logger.error("Command execution failed: %s", event.error) shutdown = 2 continue -- cgit v1.2.3-54-g00ecf