From 11b16bf7be3e0509749ac9d5f560e85f7278b4fd Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 11 Feb 2016 12:55:16 +0100 Subject: bin/find_dpkg_trigger_cycles.sh: improve curl error reporting --- bin/find_dpkg_trigger_cycles.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/find_dpkg_trigger_cycles.sh') 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 -- cgit v1.2.3-70-g09d2