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
This commit is contained in:
Sean Dague 2015-10-08 06:05:20 -04:00
parent 0280f6f6c8
commit fa41b5b47e

View File

@ -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