From 496db1d255aa614a43fe45d0d5b5b299e092da51 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 17 May 2016 11:52:59 +0200 Subject: nur noch neue Keys anfordern --- download-missing-kernel-keys | 15 +++++++++++---- 1 file 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 ..." -- cgit v1.2.3-54-g00ecf