From: myon-guest Date: Sat, 2 Jul 2005 19:21:17 +0000 (+0000) Subject: * catch IMPORTED when importing X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=1ba34687113927410a498e2c79d6460a86207398;p=pgp-tools.git * catch IMPORTED when importing * another note about v3 keys * PS for the last commit: pass "save" to gpg to save the key automatically (this doesn't hurt when the key is not changed) git-svn-id: svn://svn.debian.org/pgp-tools/trunk@107 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/caff/caff b/caff/caff index e773740..b946a9a 100755 --- a/caff/caff +++ b/caff/caff @@ -781,14 +781,13 @@ if ($CONFIG{'no-download'}) { $imported_key = $3.$4 if $local_keyids{ $3.$4}; $imported_key = $4 if $local_keyids{ $4}; unless ($imported_key) { - warn("Imported unexpected key; got: $imported_key.\n"); + notice ("Imported unexpected key; got: $1$2$3$4. (This is normal for v3 keys.)\n"); next; }; debug ("Imported $imported_key"); delete $local_keyids{$imported_key}; unshift @keyids_ok, $imported_key; - } elsif ($line =~ /^\[GNUPG:\] NODATA 1$/) { - } elsif ($line =~ /^\[GNUPG:\] IMPORT_RES /) { + } elsif ($line =~ /^\[GNUPG:\] (NODATA|IMPORT_RES|IMPORTED) /) { } else { notice ("got unknown reply from gpg: $line"); }