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
|
@ -123,7 +123,13 @@ rpm_make()
|
|||
if [ ! -e "SOURCES/$packageTarBall" ]; then
|
||||
echo "Download $packageTarBall from : $_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
|
||||
|
||||
|
|
Reference in a new issue