diff options
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index df0b85416f..2bee242eb0 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -537,25 +537,25 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
537 | _, error = server.runCommand(["stateForceShutdown"]) | 537 | _, error = server.runCommand(["stateForceShutdown"]) |
538 | main.shutdown = 2 | 538 | main.shutdown = 2 |
539 | try: | 539 | try: |
540 | summary = "" | 540 | summary = "" |
541 | if taskfailures: | 541 | if taskfailures: |
542 | summary += pluralise("\nSummary: %s task failed:", | 542 | summary += pluralise("\nSummary: %s task failed:", |
543 | "\nSummary: %s tasks failed:", len(taskfailures)) | 543 | "\nSummary: %s tasks failed:", len(taskfailures)) |
544 | for failure in taskfailures: | 544 | for failure in taskfailures: |
545 | summary += "\n %s" % failure | 545 | summary += "\n %s" % failure |
546 | if warnings: | 546 | if warnings: |
547 | summary += pluralise("\nSummary: There was %s WARNING message shown.", | 547 | summary += pluralise("\nSummary: There was %s WARNING message shown.", |
548 | "\nSummary: There were %s WARNING messages shown.", warnings) | 548 | "\nSummary: There were %s WARNING messages shown.", warnings) |
549 | if return_value and errors: | 549 | if return_value and errors: |
550 | summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.", | 550 | summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.", |
551 | "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors) | 551 | "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors) |
552 | if summary: | 552 | if summary: |
553 | print(summary) | 553 | print(summary) |
554 | 554 | ||
555 | if interrupted: | 555 | if interrupted: |
556 | print("Execution was interrupted, returning a non-zero exit code.") | 556 | print("Execution was interrupted, returning a non-zero exit code.") |
557 | if return_value == 0: | 557 | if return_value == 0: |
558 | return_value = 1 | 558 | return_value = 1 |
559 | except IOError as e: | 559 | except IOError as e: |
560 | import errno | 560 | import errno |
561 | if e.errno == errno.EPIPE: | 561 | if e.errno == errno.EPIPE: |