bitbake: knotty.py: fix indent
It used 5 spaces as the indent. (Bitbake rev: 162d35ed53d34b28b153adf643044e7f105fcff1) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
12b6cf0f22
commit
0308f3101b
|
@ -537,25 +537,25 @@ def main(server, eventHandler, params, tf = TerminalFilter):
|
||||||
_, error = server.runCommand(["stateForceShutdown"])
|
_, error = server.runCommand(["stateForceShutdown"])
|
||||||
main.shutdown = 2
|
main.shutdown = 2
|
||||||
try:
|
try:
|
||||||
summary = ""
|
summary = ""
|
||||||
if taskfailures:
|
if taskfailures:
|
||||||
summary += pluralise("\nSummary: %s task failed:",
|
summary += pluralise("\nSummary: %s task failed:",
|
||||||
"\nSummary: %s tasks failed:", len(taskfailures))
|
"\nSummary: %s tasks failed:", len(taskfailures))
|
||||||
for failure in taskfailures:
|
for failure in taskfailures:
|
||||||
summary += "\n %s" % failure
|
summary += "\n %s" % failure
|
||||||
if warnings:
|
if warnings:
|
||||||
summary += pluralise("\nSummary: There was %s WARNING message shown.",
|
summary += pluralise("\nSummary: There was %s WARNING message shown.",
|
||||||
"\nSummary: There were %s WARNING messages shown.", warnings)
|
"\nSummary: There were %s WARNING messages shown.", warnings)
|
||||||
if return_value and errors:
|
if return_value and errors:
|
||||||
summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.",
|
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)
|
"\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors)
|
||||||
if summary:
|
if summary:
|
||||||
print(summary)
|
print(summary)
|
||||||
|
|
||||||
if interrupted:
|
if interrupted:
|
||||||
print("Execution was interrupted, returning a non-zero exit code.")
|
print("Execution was interrupted, returning a non-zero exit code.")
|
||||||
if return_value == 0:
|
if return_value == 0:
|
||||||
return_value = 1
|
return_value = 1
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
import errno
|
import errno
|
||||||
if e.errno == errno.EPIPE:
|
if e.errno == errno.EPIPE:
|
||||||
|
|
Loading…
Reference in New Issue