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 5, 2025
1 parent 11774d2 commit f1d2a95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions getuto
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ 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
gpg ${QUIET_GPG} --batch --keyserver "${keyserver}" --refresh-keys &
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
gpg ${QUIET_GPG} --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] &
wait

touch ${LASTRUNFILE}
else
Expand Down

0 comments on commit f1d2a95

Please sign in to comment.