summaryrefslogtreecommitdiff
path: root/download-missing-kernel-keys
diff options
context:
space:
mode:
Diffstat (limited to 'download-missing-kernel-keys')
-rwxr-xr-xdownload-missing-kernel-keys15
1 files changed, 11 insertions, 4 deletions
diff --git a/download-missing-kernel-keys b/download-missing-kernel-keys
index 06048ec..293f849 100755
--- a/download-missing-kernel-keys
+++ b/download-missing-kernel-keys
@@ -26,30 +26,37 @@ alteKeyIds="$(
for ((i=0; i<$lvl; i++))
do
keyIds="$(
- gpg --list-sigs --fast-list-mode --fixed-list-mode --with-colons ${alteKeyIds} | \
+ gpg --list-sigs --fast-list-mode --fixed-list-mode --with-colons --no-auto-check-trustdb ${alteKeyIds} | \
grep '^sig:' | \
cut -d: -f 5 | \
sed 's|^|0x|' | \
sort -u
)"
echo "stage ${i}:" $(echo "${alteKeyIds}" | wc -l) "keys ->" $(echo "${keyIds}" | wc -l) "keys."
+ bekannteKeyIds="$(
+ gpg --list-keys --fast-list-mode --fixed-list-mode --with-colons --no-auto-check-trustdb | \
+ grep '^pub:' | \
+ cut -d: -f 5 | \
+ sed 's|^|0x|' | \
+ sort -u
+ )"
alleKeyIds="$(
(
echo "${keyIds}"
- echo "${alteKeyIds}"
+ echo "${bekannteKeyIds}"
) | \
sort -u
)"
(
echo "${alleKeyIds}"
- echo "${alteKeyIds}"
+ echo "${bekannteKeyIds}"
) | \
sort | \
uniq -u | \
xargs -n50 gpg --recv-keys --no-auto-check-trustdb
- alteKeyIds="${alleKeyIds}"
+ alteKeyIds="${keyIds}"
done
echo "checking trustdb ..."