From 4966bc9b46cd6e2e3fb938487b2760aa2524fb7c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 7 Oct 2019 13:12:53 +0200 Subject: [PATCH] Export with comment ... containing username and keyid --- update-keys | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update-keys b/update-keys index 72938bc..ce75f2b 100755 --- a/update-keys +++ b/update-keys @@ -57,7 +57,7 @@ while read -ra data; do keyid="${data[0]}" username="${data[@]:1}" "${GPG[@]}" --yes --lsign-key ${keyid} &>/dev/null - "${GPG[@]}" --export ${keyid} >> master/${username}.asc + "${GPG[@]}" --comment "master-key: ${username} (${keyid})" --export ${keyid} >> master/${username}.asc echo "${keyid}:4:" >> archlinux-trusted done < master-keyids "${GPG[@]}" --import-ownertrust < archlinux-trusted 2>/dev/null @@ -66,7 +66,7 @@ done < master-keyids while read -ra data; do keyid="${data[0]}" username="${data[1]}" - "${GPG[@]}" --export ${keyid} >> master-revoked/${username}.asc + "${GPG[@]}" --comment "revoked master-key: ${username} (${keyid})" --export ${keyid} >> master-revoked/${username}.asc echo "${keyid}" >> archlinux-revoked done < master-revoked-keyids @@ -77,7 +77,7 @@ while read -ra data; do if ! "${GPG[@]}" --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then echo "key is not fully trusted: ${keyid} ${username}" else - "${GPG[@]}" --export ${keyid} >> packager/${username}.asc + "${GPG[@]}" --comment "packager: ${username} (${keyid})" --export ${keyid} >> packager/${username}.asc fi done < packager-keyids @@ -85,7 +85,7 @@ done < packager-keyids while read -ra data; do keyid="${data[0]}" username="${data[1]}" - "${GPG[@]}" --export ${keyid} >> packager-revoked/${username}.asc + "${GPG[@]}" --comment "revoked packager: ${username} (${keyid})" --export ${keyid} >> packager-revoked/${username}.asc echo "${keyid}" >> archlinux-revoked done < packager-revoked-keyids