diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-08-25 12:44:10 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-08-25 12:44:10 +0200 |
commit | cdae3b42924185cf794a656126d9e730a8668d94 (patch) | |
tree | a003868a47ad997b261b65a79d3316b41b62cab2 /localgpgexpandkeyring | |
parent | 9800d54f151a191c0580c7cd328956b4942bd100 (diff) |
Check database once after import.
Diffstat (limited to 'localgpgexpandkeyring')
-rwxr-xr-x | localgpgexpandkeyring | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/localgpgexpandkeyring b/localgpgexpandkeyring index fc8a79f..0e3e027 100755 --- a/localgpgexpandkeyring +++ b/localgpgexpandkeyring @@ -7,7 +7,7 @@ set -e GPG=${GPG:-gpg} # my keys are those with a corresponding secret key -mykeys=$($GPG --batch --list-secret-keys --with-colons | grep '^sec' | cut -d: -f5) +mykeys=$($GPG --batch --no-auto-check-trustdb --list-secret-keys --with-colons | grep '^sec' | cut -d: -f5) if [ -z "$mykeys" ]; then # exit if no key string echo "Can't get user's key ID" @@ -15,10 +15,11 @@ if [ -z "$mykeys" ]; then fi # all of the people without key locally who have signed my key -mysigners=$(LC_ALL=C $GPG --batch --list-sigs --with-colons $mykeys | grep '^sig.*User ID not found' | cut -d: -f5 | sort -u) +mysigners=$(LC_ALL=C $GPG --batch --no-auto-check-trustdb --list-sigs --with-colons $mykeys | grep '^sig.*User ID not found' | cut -d: -f5 | sort -u) if [ -z "$mysigners" ]; then echo "# Nothing to fetch!" else - $GPG --batch --keyserver-options no-auto-key-retrieve "$@" --recv-keys $mysigners + $GPG --batch --no-auto-check-trustdb --keyserver-options no-auto-key-retrieve "$@" --recv-keys $mysigners + $GPG --batch --check-trustdb fi |