diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2019-11-29 12:37:43 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-11-29 12:37:43 +0300 |
commit | b25bb2d7ec31ef08d67142ad655d59cd37e1d747 (patch) | |
tree | 417936f96c2a7201d385b09f794d11b7faa0f486 /build_files/package_spec | |
parent | ae13bba24e4a104d17478be40e714a789d062fb0 (diff) |
Archive build script: stop when creating archive fails
The `subprocess.call()` function doesn't check the exit status code of the
subprocess. Use `subprocess.check_call()` or `subprocess.run()` instead.
Diffstat (limited to 'build_files/package_spec')
-rwxr-xr-x | build_files/package_spec/build_archive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/package_spec/build_archive.py b/build_files/package_spec/build_archive.py index 754bb8cd402..d8d3c29ea48 100755 --- a/build_files/package_spec/build_archive.py +++ b/build_files/package_spec/build_archive.py @@ -61,7 +61,7 @@ try: sys.stderr.write('Unknown archive extension: ' + extension) sys.exit(-1) - subprocess.call(archive_cmd) + subprocess.check_call(archive_cmd, env=archive_env) except Exception as ex: sys.stderr.write('Failed to create package archive: ' + str(ex) + '\n') sys.exit(1) |