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:
parent
0280f6f6c8
commit
fa41b5b47e
@ -69,7 +69,7 @@ function install_get_pip {
|
|||||||
timecond="-z $LOCAL_PIP"
|
timecond="-z $LOCAL_PIP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl --retry 6 --retry-delay 5 \
|
curl -f --retry 6 --retry-delay 5 \
|
||||||
$timecond -o $LOCAL_PIP $PIP_GET_PIP_URL || \
|
$timecond -o $LOCAL_PIP $PIP_GET_PIP_URL || \
|
||||||
die $LINENO "Download of get-pip.py failed"
|
die $LINENO "Download of get-pip.py failed"
|
||||||
touch $LOCAL_PIP.downloaded
|
touch $LOCAL_PIP.downloaded
|
||||||
|
Loading…
Reference in New Issue
Block a user