update-keys: also collect keys with marginal trust

This commit is contained in:
Christian Hesse 2019-10-09 16:51:15 +02:00
parent ff463b24b1
commit 5f2b58b703

View File

@ -75,7 +75,8 @@ while read -ra data; do
keyid="${data[0]}"
username="${data[@]:1}"
if ! "${GPG[@]}" --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then
echo "key is not fully trusted: ${keyid} ${username}"
echo "WARNING: key is not fully trusted: ${keyid} ${username}"
"${GPG[@]}" --comment "marginal trust: ${username} (${keyid})" --export ${keyid} >> packager/${username}.asc
else
"${GPG[@]}" --comment "packager: ${username} (${keyid})" --export ${keyid} >> packager/${username}.asc
fi