Skip to content

Commit

Permalink
getuto: Refresh keys in parallel
Browse files Browse the repository at this point in the history
Signed-off-by: Zen <[email protected]>
  • Loading branch information
desultory committed Feb 4, 2025
1 parent d6cbf74 commit 3790168
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion getuto
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ getuto_refresh() {
# Refresh all keys from the keyserver if we can.
for keyserver in "${mykeyservers[@]}" ; do
# TODO: keys.openpgp.org lacks a UID for our keys, need to verify email
gpg ${QUIET_GPG} --batch --keyserver "${keyserver}" --refresh-keys || true
einfo "Refreshing keys from: ${keyserver}"
gpg ${QUIET_GPG} --batch --keyserver "${keyserver}" --refresh-keys || true &
done
# We only sign (-> ultimate trust) the keys we originally import, so this is fine and
# just serves as an additional refresh method.
gpg ${QUIET_GPG} --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] || true
wait

touch ${LASTRUNFILE}
else
Expand Down

0 comments on commit 3790168

Please sign in to comment.