ThirdParty: adding some retry/timeout robustness parameters to the curl download command for the packages' source code.

This commit is contained in:
Martin Beaudoin 2018-06-25 23:53:45 -04:00
parent f2a471c5c8
commit 454253dbe9

View file

@ -121,9 +121,15 @@ rpm_make()
packageTarBall=`basename $_PACKAGE_URL` packageTarBall=`basename $_PACKAGE_URL`
if [ ! -e "SOURCES/$packageTarBall" ]; then if [ ! -e "SOURCES/$packageTarBall" ]; then
echo "Download $packageTarBall from : $_PACKAGE_URL" echo "Download $packageTarBall from : $_PACKAGE_URL"
#( cd SOURCES; wget --no-check-certificate $_PACKAGE_URL ) #( cd SOURCES; wget --no-check-certificate $_PACKAGE_URL )
( cd SOURCES; curl -L -k -O $_PACKAGE_URL )
( cd SOURCES; curl --connect-timeout 60 \
--max-time 10 \
--retry 6 \
--retry-delay 10 \
--retry-max-time 60 \
-L -k -O $_PACKAGE_URL )
fi fi
fi fi