# HG changeset patch # User Rob Landley # Date 1300445915 18000 # Node ID ffb07a48a9600c2ffd346e5c85cf86107b78dda1 # Parent 37c0b0e53b53b3b040aa037a39f5d2e29acb4530 If sha1sum isn't installed, download falls back through all the mirrors repeatedly downloading stuff, without explaining why it failed. diff -r 37c0b0e53b53 -r ffb07a48a960 sources/download_functions.sh --- a/sources/download_functions.sh Mon Mar 14 19:07:38 2011 -0500 +++ b/sources/download_functions.sh Fri Mar 18 05:58:35 2011 -0500 @@ -187,6 +187,12 @@ [ -z "$RENAME" ] || FILENAME="$(echo "$FILENAME" | sed -r "$RENAME")" ALTFILENAME=alt-"$(noversion "$FILENAME" -0)" + if [ -z "$(sha1sum < /dev/null)" ] + then + echo "Error: please install sha1sum" >&2 + exit 1 + fi + echo -ne "checking $FILENAME\r" # Update timestamps on both stable and unstable tarballs (if any)