check_checksums.py: Non-zero exit on build error

Fixes #1124.
This commit is contained in:
Oliver Smith 2018-02-14 00:12:46 +01:00
parent 42fadee584
commit ceac21766f
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 4 deletions

View File

@ -68,10 +68,9 @@ def check_build(packages):
commands = [["build_init"],
["--details-to-stdout", "build", "--strict"] + list(packages)]
for command in commands:
try:
process = subprocess.Popen(["./pmbootstrap.py"] + command)
process.communicate()
except subprocess.CalledProcessError as e:
process = subprocess.Popen(["./pmbootstrap.py"] + command)
process.communicate()
if process.returncode != 0:
print("** Building failed")
exit(1)