aboriginal

changeset 1335:ffb07a48a960

If sha1sum isn't installed, download falls back through all the mirrors repeatedly downloading stuff, without explaining why it failed.
author Rob Landley <rob@landley.net>
date Fri, 18 Mar 2011 05:58:35 -0500
parents 37c0b0e53b53
children c7dfe0e54a80
files sources/download_functions.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/sources/download_functions.sh	Mon Mar 14 19:07:38 2011 -0500
     1.2 +++ b/sources/download_functions.sh	Fri Mar 18 05:58:35 2011 -0500
     1.3 @@ -187,6 +187,12 @@
     1.4    [ -z "$RENAME" ] || FILENAME="$(echo "$FILENAME" | sed -r "$RENAME")"
     1.5    ALTFILENAME=alt-"$(noversion "$FILENAME" -0)"
     1.6  
     1.7 +  if [ -z "$(sha1sum < /dev/null)" ]
     1.8 +  then
     1.9 +    echo "Error: please install sha1sum" >&2
    1.10 +    exit 1
    1.11 +  fi
    1.12 +
    1.13    echo -ne "checking $FILENAME\r"
    1.14  
    1.15    # Update timestamps on both stable and unstable tarballs (if any)