Subject: | Unknown record type 'tru' warning on get_keys() |
Hi,
when calling $gnupg->get_public_keys() I always get this warning:
unknown record type tru at ... get_keys.al ... line 548
The tests t/encrypt and t/get_public_keys also suffer from this issue.
Obviously GnuPG::Interface doesn't know the 'tru' lines reported by
gpg --with-colons --list-public-keys
I don't know how this should be handled best. Simplest solution surely is just to ignore the 'tru' record type instead of throwing a warning on it. A prettly trivial patch for accomplishing this is attached.
My gnupg version is 1.2.5.
Regards,
Joern
--- lib/GnuPG/Interface.pm.orig 2004-12-05 11:09:00.000000000 +0100
+++ lib/GnuPG/Interface.pm 2004-12-05 11:09:46.000000000 +0100
@@ -543,7 +543,7 @@
$current_key->push_subkeys( $current_signed_item );
}
- else
+ elsif ( $record_type ne 'tru' )
{
warn "unknown record type $record_type";
}