Ports: Use keyserver.ubuntu.com as .sig keyserver (#2535)

Increases the number of successfully building ports from
27 to 36 (of 56) on my system.
This commit is contained in:
Nico Weber 2020-06-09 15:10:00 -04:00 committed by GitHub
parent a85506009f
commit 33d6d640d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 05:44:20 +09:00

View file

@ -52,7 +52,9 @@ func_defined post_fetch || post_fetch() {
fetch() {
if [ "$auth_type" == "sig" ] && [ ! -z "${auth_import_key}" ]; then
# import gpg key if not existing locally
gpg --list-keys $auth_import_key || gpg --recv-key $auth_import_key
# The default keyserver keys.openpgp.org prints "new key but contains no user ID - skipped"
# and fails. Use a different key server.
gpg --list-keys $auth_import_key || gpg --keyserver hkps://keyserver.ubuntu.com --recv-key $auth_import_key
fi
OLDIFS=$IFS