diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-31 05:41:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-31 05:41:05 -0400 |
commit | b6ecbd2637cfa786f8981cef3b4f1933fcec8e0a (patch) | |
tree | ca4c1012c2eebbeed6a05d103e16334803f99d0d /acprep | |
parent | a2e643fc3df1ffd25e741cb2aad8981d868ae8aa (diff) | |
parent | bed8fb0ef487b37d5096104391e2222e3e4fd1c7 (diff) | |
download | fork-ledger-b6ecbd2637cfa786f8981cef3b4f1933fcec8e0a.tar.gz fork-ledger-b6ecbd2637cfa786f8981cef3b4f1933fcec8e0a.tar.bz2 fork-ledger-b6ecbd2637cfa786f8981cef3b4f1933fcec8e0a.zip |
Merge branch 'next'
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -308,6 +308,9 @@ class PrepareBuild(CommandLineApp): if retcode < 0: self.log.error("Child was terminated by signal", -retcode) sys.exit(1) + elif retcode != 0: + self.log.error("Execution failed: " + string.join(args, ' ')) + sys.exit(1) except OSError, e: self.log.error("Execution failed:", e) sys.exit(1) @@ -316,11 +319,15 @@ class PrepareBuild(CommandLineApp): try: self.log.debug('Executing command: ' + string.join(args, ' ')) - proc = Popen(args, shell=False, stdout=PIPE) - stdout = proc.stdout.read() - if proc.wait() < 0: + proc = Popen(args, shell=False, stdout=PIPE) + stdout = proc.stdout.read() + retcode = proc.wait() + if retcode < 0: self.log.error("Child was terminated by signal", - -proc.returncode) + -retcode) + sys.exit(1) + elif retcode != 0: + self.log.error("Execution failed: " + string.join(args, ' ')) sys.exit(1) return stdout[:-1] except OSError, e: @@ -1150,6 +1157,9 @@ class PrepareBuild(CommandLineApp): if retcode < 0: self.log.error("Child was terminated by signal", -retcode) sys.exit(1) + elif retcode != 0: + self.log.error("Execution failed: " + string.join(conf_args, ' ')) + sys.exit(1) if not self.options.no_patch: self.phase_patch() |