From f5b415425199c3496872849a3ada08e5a821b36b Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 22 Jan 2015 07:57:37 -0500 Subject: [PATCH] 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 --- tools/install_pip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install_pip.sh b/tools/install_pip.sh index d57a687ecc..73d0947320 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -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