summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-02-13 11:41:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-22 20:25:31 +0000
commite228289bf0113218a89a56a8cd2ad3b51ff1b238 (patch)
treed75442e8629b7d7ad846f4128aa97369001169d6
parentb62249f3db4f20dde50309b9ab3fbd4c5ac52e7e (diff)
downloadpoky-e228289bf0113218a89a56a8cd2ad3b51ff1b238.tar.gz
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 <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/knotty.py1
1 files changed, 1 insertions, 0 deletions
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):
203 203
204 if isinstance(event, bb.command.CommandFailed): 204 if isinstance(event, bb.command.CommandFailed):
205 return_value = event.exitcode 205 return_value = event.exitcode
206 errors = errors + 1
206 logger.error("Command execution failed: %s", event.error) 207 logger.error("Command execution failed: %s", event.error)
207 shutdown = 2 208 shutdown = 2
208 continue 209 continue