git-update: dump output in case subproject download fails

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/261>
This commit is contained in:
Jordan Petridis 2021-08-31 19:47:34 +03:00
parent c99e3b312a
commit f75713f070

View file

@ -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: