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:
Davanum Srinivas 2015-01-22 07:57:37 -05:00
parent cc9d7330e9
commit f5b4154251
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ function get_versions {
function install_get_pip {
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"
fi
sudo -H -E python $LOCAL_PIP