Commit b008981a authored by AlmAck's avatar AlmAck
Browse files

improve the gpg --recv-keys and use multiple keyserver to import the key

parent 362be5e0
......@@ -4,6 +4,11 @@ source "$SCRIPT_DIR/lib/ci-library.sh"
_do list_packages
# `gpg --recv-key` requires write access to the current user's home directory!
_do gpg --recv-key $(get_validpgpkeys)
for server in $(shuf -e ha.pool.sks-keyservers.net \
hkp://p80.pool.sks-keyservers.net:80 \
keyserver.ubuntu.com \
hkp://keyserver.ubuntu.com:80 \
pgp.mit.edu) ; do
_do gpg --keyserver "$server" --recv-keys $(get_validpgpkeys) && break || : ;
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment