scripts/get: only try 3 times before giving up

This commit is contained in:
Lukas Rusak 2016-03-15 03:31:09 -07:00
parent 140e30b580
commit 9737e400d0

View File

@ -41,7 +41,7 @@ if [ -n "$PKG_URL" -a -n "$PKG_SOURCE_NAME" ]; then
PACKAGE="$SOURCES/$1/$PKG_SOURCE_NAME"
PACKAGE_MIRROR="$DISTRO_MIRROR/$PKG_NAME/$PKG_SOURCE_NAME"
[ "$VERBOSE" != "yes" ] && WGET_OPT=-q
WGET_CMD="wget --timeout=30 --passive-ftp --no-check-certificate -c $WGET_OPT -O $SOURCES/$1/$PKG_SOURCE_NAME"
WGET_CMD="wget --timeout=30 --tries=3 --passive-ftp --no-check-certificate -c $WGET_OPT -O $SOURCES/$1/$PKG_SOURCE_NAME"
NBWGET="1"