]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
knotty.py: fix indent
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 19 Mar 2015 05:27:36 +0000 (22:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Mar 2015 14:20:03 +0000 (14:20 +0000)
It used 5 spaces as the indent.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/knotty.py

index df0b85416fc802654cce46b9cdaf100e7f3c343a..2bee242eb0403866d2fdde430e9215ce1ddb58ab 100644 (file)
@@ -537,25 +537,25 @@ def main(server, eventHandler, params, tf = TerminalFilter):
                 _, error = server.runCommand(["stateForceShutdown"])
             main.shutdown = 2
     try:
-         summary = ""
-         if taskfailures:
-             summary += pluralise("\nSummary: %s task failed:",
-                                  "\nSummary: %s tasks failed:", len(taskfailures))
-             for failure in taskfailures:
-                 summary += "\n  %s" % failure
-         if warnings:
-             summary += pluralise("\nSummary: There was %s WARNING message shown.",
-                                  "\nSummary: There were %s WARNING messages shown.", warnings)
-         if return_value and errors:
-             summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.",
-                                  "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors)
-         if summary:
-             print(summary)
-
-         if interrupted:
-             print("Execution was interrupted, returning a non-zero exit code.")
-             if return_value == 0:
-                 return_value = 1
+        summary = ""
+        if taskfailures:
+            summary += pluralise("\nSummary: %s task failed:",
+                                 "\nSummary: %s tasks failed:", len(taskfailures))
+            for failure in taskfailures:
+                summary += "\n  %s" % failure
+        if warnings:
+            summary += pluralise("\nSummary: There was %s WARNING message shown.",
+                                 "\nSummary: There were %s WARNING messages shown.", warnings)
+        if return_value and errors:
+            summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.",
+                                 "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors)
+        if summary:
+            print(summary)
+
+        if interrupted:
+            print("Execution was interrupted, returning a non-zero exit code.")
+            if return_value == 0:
+                return_value = 1
     except IOError as e:
         import errno
         if e.errno == errno.EPIPE: