From fa41b5b47ebbf6f2d973bdde235cb58694a2103f Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 8 Oct 2015 06:05:20 -0400 Subject: [PATCH] make curl fail on pypi errors This will make curl fail on pypi errors, and should prevent corrupt images from pypi going offline for a few hours randomly, which it does from time to time. Closes-Bug: #1503909 Change-Id: Ib4a740b7d1772e1e36aa701e42d3ac0f0ee12883 --- 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 dd4e4339cb..13c1786fb9 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -69,7 +69,7 @@ function install_get_pip { timecond="-z $LOCAL_PIP" fi - curl --retry 6 --retry-delay 5 \ + curl -f --retry 6 --retry-delay 5 \ $timecond -o $LOCAL_PIP $PIP_GET_PIP_URL || \ die $LINENO "Download of get-pip.py failed" touch $LOCAL_PIP.downloaded