]> git.sthu.org Git - pgp-tools.git/commitdiff
* catch IMPORTED when importing
authormyon-guest <myon-guest@b513b33f-fedd-0310-b452-c3deb5f4c849>
Sat, 2 Jul 2005 19:21:17 +0000 (19:21 +0000)
committermyon-guest <myon-guest@b513b33f-fedd-0310-b452-c3deb5f4c849>
Sat, 2 Jul 2005 19:21:17 +0000 (19:21 +0000)
* 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

caff/caff

index e77374037ab2ce0e5739bd252610c76e478df02f..b946a9ab41267a81fc6382f81a368ddb393984f7 100755 (executable)
--- 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) {
                        $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;
                            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");
                }
                } else {
                        notice ("got unknown reply from gpg: $line");
                }