Browse code

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

Sean Dague authored on 2015/10/08 19:05:20
Showing 1 changed files
... ...
@@ -69,7 +69,7 @@ function install_get_pip {
69 69
             timecond="-z $LOCAL_PIP"
70 70
         fi
71 71
 
72
-        curl --retry 6 --retry-delay 5 \
72
+        curl -f --retry 6 --retry-delay 5 \
73 73
             $timecond -o $LOCAL_PIP $PIP_GET_PIP_URL || \
74 74
             die $LINENO "Download of get-pip.py failed"
75 75
         touch $LOCAL_PIP.downloaded