]> git.sthu.org Git - pgp-tools.git/commitdiff
Also remove signature packets without timestamp
authorweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Wed, 29 Jun 2005 12:18:56 +0000 (12:18 +0000)
committerweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Wed, 29 Jun 2005 12:18:56 +0000 (12:18 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@92 b513b33f-fedd-0310-b452-c3deb5f4c849

caff/pgp-fixkey

index d17723b7b8e6932d53644bcc70d6bda37ca6e044..c4e7c9f0eb70960a9596dc4932abab841bd46981 100755 (executable)
@@ -263,7 +263,7 @@ if (scalar @KEYIDS == 0) {
                        $thiskey = $keyid;
                        debug("Found key $thiskey");
                } elsif ($type eq 'sig' || $type eq 'rev') {
-                       if (($keyid eq '0' x 16) && ($created == 0)) {
+                       if (($keyid eq '0' x 16) || ($created == 0)) {
                                push @KEYIDS, $thiskey if defined $thiskey;
                                info("Adding $thiskey");
                                $thiskey = undef;
@@ -353,8 +353,8 @@ for my $keyid (@KEYIDS) {
                if (defined $line) { # only if we found a sig here - we never remove revocation packets for instance
                        debug("[sigremoval] doing line $line.");
                        my (undef, undef, undef, undef, $signer, $created, undef, undef, undef) = split /:/, $line;
-                       if ($signer eq ('0' x 16)) {
-                               debug("[sigremoval] not interested in that sig ($signer).");
+                       if (($signer eq '0' x 16) || ($created == 0)) {
+                               debug("[sigremoval] not interested in that sig ($signer, created: $created).");
                                $answer = "yes";
                        };
                } else {