corrected traces in download function, was showing false failures

This commit is contained in:
George Boudreau 2006-05-02 12:16:37 +00:00
parent 8de111fa46
commit 585794e115

View file

@ -689,13 +689,11 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if
set -e set -e
if [ ! -f $FILE ] ; then if [ ! -f $FILE ] ; then
wget $URL1 || wget $URL2 || \ wget $URL1 || wget $URL2 || (echo "${RED}$FILE not found on the servers${OFF}" &&
echo "${RED}$FILE not found on the servers${OFF}" echo "$FILE not found on the servers 1" >> MISSING_FILES.DMP )
echo "$FILE not found on the servers" >> MISSING_FILES.DMP
elif [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then elif [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
wget -N $URL1 || wget -N $URL2 || \ wget -N $URL1 || wget -N $URL2 || ( echo "${RED}$FILE not found on the servers${OFF}" &&
echo "${RED}$FILE not found on the servers${OFF}" echo "$FILE not found on the servers 2" >> MISSING_FILES.DMP )
echo "$FILE not found on the servers" >> MISSING_FILES.DMP
fi fi
if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then