summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2021-08-31 19:47:34 +0300
committerJordan Petridis <jordan@centricular.com>2021-08-31 20:21:32 +0300
commitf75713f07038762f6fd09e199886dd4b6c00284c (patch)
treeab1ae8e2656b988307c626e2e2c07432c7318721
parentc99e3b312a613b38724a14d59ed98cce57d89e37 (diff)
git-update: dump output in case subproject download fails
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/261>
-rwxr-xr-xgit-update9
1 files changed, 8 insertions, 1 deletions
diff --git a/git-update b/git-update
index 948d0d4..ec0f470 100755
--- a/git-update
+++ b/git-update
@@ -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: