Skip to content

Commit b2c9f0e

Browse files
authored
Adding more GPG keyservers to prevent availability failures (#483)
1 parent da2e6cd commit b2c9f0e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

base/debian-9/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ PY_SHORT=${PYTHON_VERSION%.*}
3939
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
4040
wget -O /tmp/Python-gpg-sig-${PYTHON_VERSION}.tgz.asc https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz.asc
4141
apt-get install dirmngr -y
42-
gpg --keyserver pool.sks-keyservers.net --recv-keys $PYTHON_GPG_KEY_ID
42+
gpg --keyserver pool.sks-keyservers.net --recv-keys $PYTHON_GPG_KEY_ID \
43+
|| gpg --keyserver pgp.mit.edu --recv-keys $PYTHON_GPG_KEY_ID \
44+
|| gpg --keyserver keyserver.pgp.com --recv-keys $PYTHON_GPG_KEY_ID
4345
gpg --verify /tmp/Python-gpg-sig-${PYTHON_VERSION}.tgz.asc /tmp/python.tgz
4446
rm /tmp/Python-gpg-sig-${PYTHON_VERSION}.tgz.asc
4547
mkdir -p /tmp/pyinstall

base/redhat-8/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2 tzdata nett
3535
PY_SHORT=${PYTHON_VERSION%.*}
3636
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
3737
wget -O /tmp/Python-gpg-sig-${PYTHON_VERSION}.tgz.asc https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz.asc
38-
gpg --keyserver pool.sks-keyservers.net --recv-keys $PYTHON_GPG_KEY_ID
38+
gpg --keyserver pool.sks-keyservers.net --recv-keys $PYTHON_GPG_KEY_ID \
39+
|| gpg --keyserver pgp.mit.edu --recv-keys $PYTHON_GPG_KEY_ID \
40+
|| gpg --keyserver keyserver.pgp.com --recv-keys $PYTHON_GPG_KEY_ID
3941
gpg --verify /tmp/Python-gpg-sig-${PYTHON_VERSION}.tgz.asc /tmp/python.tgz
4042
rm /tmp/Python-gpg-sig-${PYTHON_VERSION}.tgz.asc
4143
mkdir -p /tmp/pyinstall

0 commit comments

Comments
 (0)