Skip to content

Commit 9256cf7

Browse files
committed
getuto: Refresh keys in parallel
Signed-off-by: Zen <[email protected]>
1 parent 98dc8c1 commit 9256cf7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

getuto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ getuto_refresh() {
7171
# Refresh all keys from the keyserver if we can.
7272
for keyserver in "${mykeyservers[@]}" ; do
7373
# TODO: keys.openpgp.org lacks a UID for our keys, need to verify email
74-
gpg ${QUIET_GPG} --no-permission-warning --batch --keyserver "${keyserver}" --refresh-keys || true
74+
einfo "Refreshing keys from: ${keyserver}"
75+
gpg ${QUIET_GPG} --no-permission-warning --batch --keyserver "${keyserver}" --refresh-keys || true &
7576
done
7677
# We only sign (-> ultimate trust) the keys we originally import, so this is fine and
7778
# just serves as an additional refresh method.
78-
gpg ${QUIET_GPG} --no-permission-warning --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] || true
79-
79+
einfo "Refreshing keys using WKD."
80+
gpg ${QUIET_GPG} --no-permission-warning --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] || true &
81+
wait
8082
touch ${LASTRUNFILE}
8183
else
8284
[[ -n ${QUIET} ]] || einfo "gnupg keyring for package signatures already up-to-date."

0 commit comments

Comments
 (0)