Switch on curl retry options for fetching get-pip.py
Let's retry a few times before giving up. Related-Bug: #1413034 Change-Id: I7c5c1a3936b5c08c5de43edc569b5a53d11b55a7
This commit is contained in:
parent
cc9d7330e9
commit
f5b4154251
@ -43,7 +43,7 @@ function get_versions {
|
|||||||
|
|
||||||
function install_get_pip {
|
function install_get_pip {
|
||||||
if [[ ! -r $LOCAL_PIP ]]; then
|
if [[ ! -r $LOCAL_PIP ]]; then
|
||||||
curl -o $LOCAL_PIP $PIP_GET_PIP_URL || \
|
curl --retry 6 --retry-delay 5 -o $LOCAL_PIP $PIP_GET_PIP_URL || \
|
||||||
die $LINENO "Download of get-pip.py failed"
|
die $LINENO "Download of get-pip.py failed"
|
||||||
fi
|
fi
|
||||||
sudo -H -E python $LOCAL_PIP
|
sudo -H -E python $LOCAL_PIP
|
||||||
|
Loading…
Reference in New Issue
Block a user