Skip to content

Commit

Permalink
make curl fail on pypi errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sdague committed Oct 8, 2015
1 parent 0280f6f commit fa41b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install_pip.sh
Expand Up @@ -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
Expand Down

0 comments on commit fa41b5b

Please sign in to comment.