Subject: | get_public_keys/get_secret_keys method with no arguments produces warning |
Date: | Fri, 15 Oct 2010 20:05:08 +0200 |
To: | bug-GnuPG-Interface [...] rt.cpan.org |
From: | Salvatore Bonaccorso <carnil [...] cpan.org> |
Hi Jesse
We got the bug report below in Debian [1].
[1] http://bugs.debian.org/600290
When calling get_secret_keys or get_public_keys without arguments then
it produces uninitialized value warnings, or e.g
unknown record type uat at /usr/share/perl5/GnuPG/Interface.pm line 513, <GEN1> line 63.
for get_public_keys method.
When calling gnupg, without arguments to --list-secret-keys or
--list-public-keys then it lists all the keys:
gpg --list-secret-keys
and
gpg --list-public-keys
Would it be possible to 'adopt' this behaviour too to the
get_secret_keys or get_public_keys respectively?
Thanks in advance
Bests
Salvatore
----- Forwarded message from Matthew James Goins <mjgoins@openflows.com> -----
From: Matthew James Goins <mjgoins@openflows.com>
Resent-From: Matthew James Goins <mjgoins@openflows.com>
Reply-To: Matthew James Goins <mjgoins@openflows.com>,
600290@bugs.debian.org
User-Agent: Mutt/1.5.20 (2009-06-14)
Date: Fri, 15 Oct 2010 11:31:37 -0400
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#600290: libgnupg-interface-perl: get_secret_keys method with no
arguments produces warning
Package: libgnupg-interface-perl
Version: 0.42.002-1
Severity: normal
Calling the get_secret_keys method produces the following
error/warning:
Use of uninitialized value $expiration_date in string eq \
at /usr/share/perl5/GnuPG/Interface.pm line 555, <GEN1> line 4
To reproduce, create a keyring with a secret key available, and run the
following code or equivalent:
my $gnupg = GnuPG::Interface->new();
$gnupg->options->hash_init( armor => 1 );
my @keys = $gnupg->get_secret_keys();
Compare with:
my @keys = $gnupg->get_secret_keys("3DF8B223");
Substituting 3DF8B223 with your key id.
Thank you!
--mjgoins
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (600, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libgnupg-interface-perl depends on:
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii libany-moose-perl 0.13-1 module to use either Moose or Mous
ii perl 5.10.1-14 Larry Wall's Practical Extraction
libgnupg-interface-perl recommends no packages.
libgnupg-interface-perl suggests no packages.
-- no debconf information
Show quoted text
_______________________________________________
pkg-perl-maintainers mailing list
pkg-perl-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-perl-maintainers
----- End forwarded message -----
Message body not shown because it is not plain text.