diff options
author | Jordan Petridis <jordan@centricular.com> | 2021-08-31 19:47:34 +0300 |
---|---|---|
committer | Jordan Petridis <jordan@centricular.com> | 2021-08-31 20:21:32 +0300 |
commit | f75713f07038762f6fd09e199886dd4b6c00284c (patch) | |
tree | ab1ae8e2656b988307c626e2e2c07432c7318721 | |
parent | c99e3b312a613b38724a14d59ed98cce57d89e37 (diff) |
git-update: dump output in case subproject download fails
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/261>
-rwxr-xr-x | git-update | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -207,7 +207,14 @@ if __name__ == "__main__": if options.manifest: meson = get_meson() - targets_s = subprocess.check_output(meson + ['subprojects', 'download']) + try: + targets_s = subprocess.check_output(meson + ['subprojects', 'download'], shell=False, universal_newlines=True) + except subprocess.CalledProcessError as err: + print(f"Subproject download Failed") + print(f"Output: {err.output}") + print(f"Exit code: {err.returncode}") + exit(err.returncode) + repos_commits = manifest_get_commits(options.manifest) FORCE_CHECKOUT = True else: |