summaryrefslogtreecommitdiff
path: root/git-update
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2021-08-31 19:47:34 +0300
committerTim-Philipp Müller <tim@centricular.com>2021-08-31 19:02:47 +0100
commitb6c8fa1fad76d24c493200476f8a3de73184f0ac (patch)
tree09aff46fa8912c541723a26726117f882eae7fb5 /git-update
parentf62ec72ca07065c8034d48620030b0e85b116265 (diff)
git-update: dump output in case subproject download fails
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/260>
Diffstat (limited to 'git-update')
-rwxr-xr-xgit-update9
1 files changed, 8 insertions, 1 deletions
diff --git a/git-update b/git-update
index f295db0..ac03983 100755
--- a/git-update
+++ b/git-update
@@ -204,7 +204,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: