modify wget timeout to 10 seconds, add -t 5 for maximum 5 tries

This commit is contained in:
chess.griffin 2008-08-24 04:05:20 +00:00
parent 218bc9e142
commit 6b3e949781

View File

@ -692,7 +692,7 @@ if [ ! -e $PKGPATH/$SRCNAME ]; then
ln -s $SRCDIR/$SRCNAME $LOCALREPO/$SLACKVER/$PKGPATH/$SRCNAME
else
cd $SRCDIR
wget -T 20 $DOWNLOAD || rm -rf $TMP/sbopkg_build.lck
wget -t 5 -T 10 $DOWNLOAD || rm -rf $TMP/sbopkg_build.lck
cd -
ln -s $SRCDIR/$SRCNAME $LOCALREPO/$SLACKVER/$PKGPATH/$SRCNAME
fi