summaryrefslogtreecommitdiff
path: root/download-missing-kernel-keys
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-17 11:52:59 +0200
committerErich Eckner <git@eckner.net>2016-05-17 11:52:59 +0200
commit496db1d255aa614a43fe45d0d5b5b299e092da51 (patch)
tree35c08852831f07f6f5cd88200354d1db700be253 /download-missing-kernel-keys
parentde7037c767fe8dfe7f430841bb17233ab1f61675 (diff)
downloadkernelKeys-496db1d255aa614a43fe45d0d5b5b299e092da51.tar.xz
nur noch neue Keys anfordern
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 ..."