Make easypack check for errors from urlget instead of trying with <HTML..

grepping.
This commit is contained in:
Ben Gras 2006-02-02 18:12:21 +00:00
parent df1989aeae
commit a4e64f44bf

View File

@ -66,15 +66,14 @@ do # Check to see if it exists. Don't overwrite unless -o given
URL=$SOFTWARE_DIR/$i.tar.bz2 URL=$SOFTWARE_DIR/$i.tar.bz2
URL1=$URL URL1=$URL
TARBZ=$i.tar.bz2 TARBZ=$i.tar.bz2
urlget $URL >$TARBZ if urlget $URL >$TARBZ
then :
# See if we got the file or an error else # It is not in the directory of tested software. Try beta dir.
if grep "<html>" $TARBZ >/dev/null
then # It is not in the directory of tested software. Try beta dir.
URL=$BETA_DIR/$TARBZ URL=$BETA_DIR/$TARBZ
urlget $URL >$TARBZ if urlget $URL >$TARBZ
if grep "<HTML>" $TARBZ >/dev/null || grep "<html>" $TARBZ >/dev/null then :
then echo Cannot get $i. else
echo Cannot get $i.
echo " " Tried $URL1 echo " " Tried $URL1
echo " " Tried $URL echo " " Tried $URL
echo " " Skipping this package echo " " Skipping this package