Do verify certs

You'll be running into problems later on anyway, and it doesn't look
like there are builds with known shasums anymore for more recent
virtualenv zipapps.
This commit is contained in:
mvdbeek
2022-02-11 17:25:50 +01:00
parent d938357d8e
commit 4dca001b5d
+2 -5
View File
@@ -146,14 +146,11 @@ if [ $SET_VENV -eq 1 ] && [ $CREATE_VENV -eq 1 ]; then
vurl="https://bootstrap.pypa.io/virtualenv/${min_python_version}/virtualenv.pyz"
vtmp=$(mktemp -d -t galaxy-virtualenv-XXXXXX)
vsrc="$vtmp/$(basename $vurl)"
# SSL certificates are not checked to prevent problems with messed
# up client cert environments. We verify the download using a known
# good sha256 sum instead.
echo "Fetching $vurl"
if command -v curl >/dev/null; then
curl --insecure -L -o "$vsrc" "$vurl"
curl -L -o "$vsrc" "$vurl"
elif command -v wget >/dev/null; then
wget --no-check-certificate -O "$vsrc" "$vurl"
wget -O "$vsrc" "$vurl"
else
"$GALAXY_PYTHON" -c "try:
from urllib import urlretrieve