[tools.darkcult] fix result check in break/continue mode

This commit is contained in:
bolero-MURAKAMI 2013-09-30 09:36:56 +09:00
parent e56429ad0a
commit 04f61170a7
2 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,8 @@ def continue_build(command):
sys.stdout.write(".") sys.stdout.write(".")
sys.stdout.flush() sys.stdout.flush()
result = subprocess.call(command[0], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) result = subprocess.call(command[0], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
logging.critical(command[1]) if not result:
logging.critical(command[1])
return result return result
def main(): def main():
@ -116,5 +117,5 @@ def main():
] ]
)) ))
if __name__=="__main__": if __name__ == "__main__":
sys.exit(main()) sys.exit(main())

View file

@ -57,5 +57,5 @@ def main():
] ]
)) ))
if __name__=="__main__": if __name__ == "__main__":
sys.exit(main()) sys.exit(main())