Merge "package-installs: fix error case for Python 2.6"

This commit is contained in:
Jenkins 2015-05-07 17:25:54 +00:00 committed by Gerrit Code Review
commit cb4ce88048

View File

@ -30,7 +30,9 @@ def process_output(cmdline):
proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE) proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE)
out = proc.communicate()[0] out = proc.communicate()[0]
if proc.returncode: if proc.returncode:
raise subprocess.CalledProcessError(proc.returncode, cmdline, out) e = subprocess.CalledProcessError(proc.returncode, cmdline)
e.output = out
raise e
return out return out