r753 - /scripts/download-seti

smoe-guest at users.alioth.debian.org smoe-guest at users.alioth.debian.org
Wed Nov 21 10:13:22 UTC 2007


Author: smoe-guest
Date: Wed Nov 21 10:13:21 2007
New Revision: 753

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=753
Log:
Download seti is more verbose now (too verbose?) and explicitly
returns -1 as exit code if the download has failed. This is important
for the get-orig-source target in debian/rules.

Modified:
    scripts/download-seti

Modified: scripts/download-seti
URL: http://svn.debian.org/wsvn/pkg-boinc/scripts/download-seti?rev=753&op=diff
==============================================================================
--- scripts/download-seti (original)
+++ scripts/download-seti Wed Nov 21 10:13:21 2007
@@ -16,11 +16,15 @@
 NIGHTLY_DIR="http://setiweb.ssl.berkeley.edu/sah/seti_source/nightly"
 FILENAME="setiathome_enhanced-client-cvs-$DATE.tar.gz"
 
-curl --fail "$NIGHTLY_DIR/{,old/}$FILENAME" -o "$FILENAME" || true
+if ! curl --fail "$NIGHTLY_DIR/$FILENAME" -o "$FILENAME"; then
+	echo "Could not download the file '$NIGHTLY_DIR/$FILENAME', now searching in the subdir 'old'."
+	if ! curl --fail "$NIGHTLY_DIR/old/$FILENAME" -o "$FILENAME"; then
+		echo "Also failed to download '$NIGHTLY_DIR/old/$FILENAME'."
+		exit -1
+	fi
+fi
 
-echo
-echo 'The download with curl needs to be successful only once. Ignore an error message in the "old" subdir.'
-echo
+echo "The download of release $DATE was successful."
 
 tar -xzf "$FILENAME"
 rm "$FILENAME"




More information about the pkg-boinc-commits mailing list