Skip to content

Commit fa41b5b

Browse files
committed
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
1 parent 0280f6f commit fa41b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/install_pip.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function install_get_pip {
6969
timecond="-z $LOCAL_PIP"
7070
fi
7171

72-
curl --retry 6 --retry-delay 5 \
72+
curl -f --retry 6 --retry-delay 5 \
7373
$timecond -o $LOCAL_PIP $PIP_GET_PIP_URL || \
7474
die $LINENO "Download of get-pip.py failed"
7575
touch $LOCAL_PIP.downloaded

0 commit comments

Comments
 (0)