projects
/
pgp-tools.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add keylookup
[pgp-tools.git]
/
caff
/
pgp-fixkey
diff --git
a/caff/pgp-fixkey
b/caff/pgp-fixkey
index c4e7c9f0eb70960a9596dc4932abab841bd46981..03d126e56046b2834d56272f43a420d75a2b1894 100755
(executable)
--- a/
caff/pgp-fixkey
+++ b/
caff/pgp-fixkey
@@
-262,10
+262,12
@@
if (scalar @KEYIDS == 0) {
if ($type eq 'pub') {
$thiskey = $keyid;
debug("Found key $thiskey");
if ($type eq 'pub') {
$thiskey = $keyid;
debug("Found key $thiskey");
+ } elsif (!defined $thiskey) {
+ next;
} elsif ($type eq 'sig' || $type eq 'rev') {
if (($keyid eq '0' x 16) || ($created == 0)) {
} elsif ($type eq 'sig' || $type eq 'rev') {
if (($keyid eq '0' x 16) || ($created == 0)) {
- push @KEYIDS, $thiskey
if defined $thiskey
;
- info("
Adding $thiskey
");
+ push @KEYIDS, $thiskey;
+ info("
Key $thiskey needs cleaning.
");
$thiskey = undef;
};
};
$thiskey = undef;
};
};