index : archlinux32-keyring | |
Archlinux32 pacman keyring | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | update-keys | 19 |
diff --git a/update-keys b/update-keys index ca68887..5c7592a 100755 --- a/update-keys +++ b/update-keys @@ -6,7 +6,8 @@ TMPDIR=$(mktemp -d) trap "rm -rf '${TMPDIR}'" EXIT KEYSERVER='hkp://keys.gnupg.net' -GPG="gpg --quiet --batch --no-tty --no-permission-warning --keyserver "${KEYSERVER}" --homedir ${TMPDIR}" +GPG_OPTIONS='--quiet --batch --no-tty --no-permission-warning' +GPG="gpg ${GPG_OPTIONS} --keyserver "${KEYSERVER}" --homedir ${TMPDIR}" pushd "$(dirname "$0")" >/dev/null @@ -31,8 +32,8 @@ while read -ra data; do keyid="${data[0]}" username="${data[@]:1}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} </dev/null | ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" </dev/null | ${GPG} --import &>/dev/null printf 'minimize\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} ${GPG} --yes --lsign-key ${keyid} &>/dev/null @@ -44,8 +45,8 @@ ${GPG} --import-ownertrust < archlinux32-trusted 2>/dev/null while read -ra data; do keyid="${data[0]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null done < packager-keyids while read -ra data; do keyid="${data[0]}" @@ -65,8 +66,8 @@ while read -ra data; do keyid="${data[0]}" username="${data[2]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null printf 'clean\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} if ! ${GPG} --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then @@ -81,8 +82,8 @@ while read -ra data; do keyid="${data[0]}" username="${data[2]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null printf 'clean\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} if ! ${GPG} --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then |