diff options
author | Johannes 'josch' Schauer <josch@mister-muffin.de> | 2016-02-11 12:55:16 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-02-11 12:58:53 +0100 |
commit | 11b16bf7be3e0509749ac9d5f560e85f7278b4fd (patch) | |
tree | b45bee0d595b11ed561e6798feac5ba901f192c8 /bin | |
parent | eaf9e2074edf4a0d3ce93744431351305deba1e1 (diff) | |
download | jenkins.debian.net-11b16bf7be3e0509749ac9d5f560e85f7278b4fd.tar.xz |
bin/find_dpkg_trigger_cycles.sh: improve curl error reporting
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find_dpkg_trigger_cycles.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh index 14416a84..ce78f496 100755 --- a/bin/find_dpkg_trigger_cycles.sh +++ b/bin/find_dpkg_trigger_cycles.sh @@ -187,7 +187,9 @@ curl --retry 3 --retry-delay 10 --globoff "http://binarycontrol.debian.net/?q=&p # # curl is allowed to fail with exit status 23 because we want to stop # downloading immediately after control.tar.gz has been extracted - ( curl --retry 3 --retry-delay 10 --location --silent "$url" || [ "$?" -eq 23 ] || ( echo "curl failed">&2 && exec /srv/jenkins/bin/abort.sh ) ) \ + ( curl --retry 3 --retry-delay 10 --location --silent "$url" \ + || { err="$?" && [ "$err" -eq 23 ]; } \ + || ( echo "curl failed downloading $url for $pkg with exit $err">&2 && exec /srv/jenkins/bin/abort.sh ) ) \ | dpkg-deb --ctrl-tarfile /dev/stdin \ | tar -C "$tmpdir" --exclude=./md5sums -x if [ ! -f "$tmpdir/triggers" ]; then |