ThirdParty: adding some retry/timeout robustness parameters to the curl download command for the packages' source code.
This commit is contained in:
parent
f2a471c5c8
commit
454253dbe9
1 changed files with 9 additions and 3 deletions
12
ThirdParty/tools/makeThirdPartyFunctionsForRPM
vendored
12
ThirdParty/tools/makeThirdPartyFunctionsForRPM
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue