Skip Menu |

This queue is for tickets about the GnuPG-Interface CPAN distribution.

Report information
The Basics
Id: 57025
Status: resolved
Priority: 0/
Queue: GnuPG-Interface

People
Owner: Nobody in particular
Requestors: ansgar [...] 43-1.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] GnuPG::Interface documentation example is wrong for list_public_keys()
Date: Thu, 29 Apr 2010 12:39:02 +0900
To: bug-GnuPG-Interface [...] rt.cpan.org
From: Ansgar Burchardt <ansgar [...] 43-1.org>
Hi, Daniel Kahn Gillmor reported the attached bug in Debian's bug tracker[1]. I think the real problem is a few lines before: my @ids = [ 'ftobin', '0xABCD1234' ]; Here (...) should be used instead of [...] so that @ids is a list of two strings instead of a list of one arrayref. Please consider applying the attached patch for the next release. Regards, Ansgar [1] <http://bugs.debian.org/579587>
From: Ansgar Burchardt <ansgar@43-1.org> Thu, 29 Apr 2010 12:32:33 +0900 Bug-Debian: http://bugs.debian.org/579587 Subject: Fix example for list_public_keys --- libgnupg-interface-perl.orig/lib/GnuPG/Interface.pm +++ libgnupg-interface-perl/lib/GnuPG/Interface.pm @@ -1136,7 +1136,7 @@ # and read from our input, because no input is needed! my $handles = GnuPG::Handles->new(); - my @ids = [ 'ftobin', '0xABCD1234' ]; + my @ids = ( 'ftobin', '0xABCD1234' ); # this time we need to specify something for # command_args because --list-public-keys takes
Subject: Bug#579587: libgnupg-interface-perl: GnuPG::Interface documentation example is wrong for list_public_keys()
To: Debian Bug Tracking System <submit [...] bugs.debian.org>
Date: Wed, 28 Apr 2010 16:01:31 -0400
From: Daniel Kahn Gillmor <dkg [...] fifthhorseman.net>
Package: libgnupg-interface-perl Version: 0.42-2 Severity: normal Tags: patch The example in GnuPG::Interface documentation for the list_public_keys functionality adds a mistaken layer of indirection, which causes the gpg query to fail. The attached patch fixes the documentation. Thanks, --dkg -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-4-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libgnupg-interface-perl depends on: ii gnupg 1.4.10-2 GNU privacy guard - a free PGP rep ii gnupg2 2.0.14-1 GNU privacy guard - a free PGP rep ii libany-moose-perl 0.12-1 module to use either Moose or Mous ii perl 5.10.1-12 Larry Wall's Practical Extraction libgnupg-interface-perl recommends no packages. libgnupg-interface-perl suggests no packages. -- no debconf information

Message body is not shown because sender requested not to inline it.

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
Subject: Re: [rt.cpan.org #57025] [PATCH] GnuPG::Interface documentation example is wrong for list_public_keys()
Date: Sat, 1 May 2010 10:54:15 -0400
To: Ansgar Burchardt via RT <bug-GnuPG-Interface [...] rt.cpan.org>
From: Jesse Vincent <jesse [...] fsck.com>
Thanks. Applied. On Wed 28.Apr'10 at 23:39:21 -0400, Ansgar Burchardt via RT wrote: Show quoted text
> Wed Apr 28 23:39:20 2010: Request 57025 was acted upon. > Transaction: Ticket created by ansgar@43-1.org > Queue: GnuPG-Interface > Subject: [PATCH] GnuPG::Interface documentation example is wrong for list_public_keys() > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: ansgar@43-1.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=57025 > > > > Hi, > > Daniel Kahn Gillmor reported the attached bug in Debian's bug tracker[1]. > I think the real problem is a few lines before: > > my @ids = [ 'ftobin', '0xABCD1234' ]; > > Here (...) should be used instead of [...] so that @ids is a list of > two strings instead of a list of one arrayref. > > Please consider applying the attached patch for the next release. > > Regards, > Ansgar > > [1] <http://bugs.debian.org/579587> > >
Show quoted text
> From: Ansgar Burchardt <ansgar@43-1.org> > Thu, 29 Apr 2010 12:32:33 +0900 > Bug-Debian: http://bugs.debian.org/579587 > Subject: Fix example for list_public_keys > > --- libgnupg-interface-perl.orig/lib/GnuPG/Interface.pm > +++ libgnupg-interface-perl/lib/GnuPG/Interface.pm > @@ -1136,7 +1136,7 @@ > # and read from our input, because no input is needed! > my $handles = GnuPG::Handles->new(); > > - my @ids = [ 'ftobin', '0xABCD1234' ]; > + my @ids = ( 'ftobin', '0xABCD1234' ); > > # this time we need to specify something for > # command_args because --list-public-keys takes
Show quoted text
> Package: libgnupg-interface-perl > Version: 0.42-2 > Severity: normal > Tags: patch > > The example in GnuPG::Interface documentation for the list_public_keys > functionality adds a mistaken layer of indirection, which causes the > gpg query to fail. > > The attached patch fixes the documentation. > > Thanks, > > --dkg > > -- System Information: > Debian Release: squeeze/sid > APT prefers testing > APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental') > Architecture: i386 (i686) > > Kernel: Linux 2.6.32-4-686 (SMP w/1 CPU core) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > > Versions of packages libgnupg-interface-perl depends on: > ii gnupg 1.4.10-2 GNU privacy guard - a free PGP rep > ii gnupg2 2.0.14-1 GNU privacy guard - a free PGP rep > ii libany-moose-perl 0.12-1 module to use either Moose or Mous > ii perl 5.10.1-12 Larry Wall's Practical Extraction > > libgnupg-interface-perl recommends no packages. > > libgnupg-interface-perl suggests no packages. > > -- no debconf information
Show quoted text
> --- lib/GnuPG/Interface.pm.orig 2010-04-28 15:56:55.000000000 -0400 > +++ lib/GnuPG/Interface.pm 2010-04-28 15:58:17.000000000 -0400 > @@ -1142,7 +1142,7 @@ > # command_args because --list-public-keys takes > # search ids as arguments > my $pid = $gnupg->list_public_keys( handles => $handles, > - command_args => [ @ids ] ); > + command_args => @ids ); > > waitpid $pid, 0; >
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