r56281 - in /trunk/libgnupg-perl: ChangeLog GnuPG.pm GnuPG.spec META.yml debian/changelog debian/libgnupg-perl.docs
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Sat Apr 17 07:37:06 UTC 2010
Author: ansgar-guest
Date: Sat Apr 17 07:36:58 2010
New Revision: 56281
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=56281
Log:
TODO: One test fails (also on cpantesters.org).
* New upstream release (0.14).
* No longer install README.
Modified:
trunk/libgnupg-perl/ChangeLog
trunk/libgnupg-perl/GnuPG.pm
trunk/libgnupg-perl/GnuPG.spec
trunk/libgnupg-perl/META.yml
trunk/libgnupg-perl/debian/changelog
trunk/libgnupg-perl/debian/libgnupg-perl.docs
Modified: trunk/libgnupg-perl/ChangeLog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgnupg-perl/ChangeLog?rev=56281&op=diff
==============================================================================
--- trunk/libgnupg-perl/ChangeLog (original)
+++ trunk/libgnupg-perl/ChangeLog Sat Apr 17 07:36:58 2010
@@ -1,3 +1,11 @@
+2010-04-16 version 0.14 Mark Frost
+
+ * Fixed an endless read-wait scenario introduced in 0.13
+
+2010-04-16 version 0.13 Mark Frost
+
+ * Catching up some outstanding changes I left out in releases 11 and 12
+
2010-02-03 version 0.12 Mark Frost
* This release is merely some documentation fixes
Modified: trunk/libgnupg-perl/GnuPG.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgnupg-perl/GnuPG.pm?rev=56281&op=diff
==============================================================================
--- trunk/libgnupg-perl/GnuPG.pm (original)
+++ trunk/libgnupg-perl/GnuPG.pm Sat Apr 17 07:36:58 2010
@@ -47,7 +47,7 @@
Exporter::export_ok_tags( qw( algo trust ) );
- $VERSION = '0.11';
+ $VERSION = '0.14';
}
use constant DSA_ELGAMAL => 1;
@@ -184,6 +184,7 @@
my ( $cmd,$arg ) = $line =~ /\[GNUPG:\] (\w+) ?(.+)?$/;
$self->abort_gnupg( "error communicating with gnupg: bad status line: $line\n" ) unless $cmd;
+ print STDERR "Read in " . $cmd . " - " . $arg if $self->{trace};
return wantarray ? ( $cmd, $arg ) : $cmd;
}
@@ -242,18 +243,24 @@
if ( ref $self->{input} && defined fileno $self->{input} ) {
open ( STDIN, "<&" . fileno $self->{input} )
or die "error setting up data input: $!\n";
- } elsif ( $self->{input} ) {
+ } elsif ( $self->{input} && -t STDIN) {
open ( STDIN, $self->{input} )
or die "error setting up data input: $!\n";
- } # Defaults to stdin
+ } elsif ( $self->{input} ) {
+ push(@{$cmdline}, $self->{input});
+ }# Defaults to stdin
# This is where the output goes
if ( ref $self->{output} && defined fileno $self->{output} ) {
open ( STDOUT, ">&" . fileno $self->{output} )
or die "can't redirect stdout to proper output fd: $!\n";
- } elsif ( $self->{output} ) {
+ } elsif ( $self->{output} && -t STDOUT ) {
open ( STDOUT, ">".$self->{output} )
or die "can't open $self->{output} for output: $!\n";
+ } elsif ( $self->{output} ) {
+ my $gpg = shift(@{$cmdline});
+ unshift(@{$cmdline}, '--yes --output ' . $self->{output});
+ unshift(@{$cmdline}, $gpg);
} # Defaults to stdout
# Close all open file descriptors except STDIN, STDOUT, STDERR
@@ -269,7 +276,7 @@
POSIX::close( $f );
}
- exec ( @$cmdline )
+ exec ( join(' ', @$cmdline) )
or CORE::die "can't exec gnupg: $!\n";
}
}
@@ -329,6 +336,10 @@
my $cmd = $self->read_from_status;
# Skip UserID hint
$cmd = $self->read_from_status if ( $cmd =~ /USERID_HINT/ );
+ if ($cmd =~ /GOOD_PASSPHRASE/) { # This means we didnt need a passphrase
+ $self->next_status($cmd); # We push this back on for read_from_status
+ return;
+ }
$self->abort_gnupg( "Protocol error: expected NEED_PASSPHRASE.* got $cmd\n")
unless $cmd =~ /NEED_PASSPHRASE/;
$self->cpr_send( "passphrase.enter", $passwd );
@@ -587,7 +598,7 @@
# We need to unlock the private key
$self->send_passphrase( $passphrase );
my ($cmd,$line) = $self->read_from_status;
- $self->abort_gnupg( "invalid passphrase - $cmd\n" )
+ $self->abort_gnupg( "invalid passphrase - $cmd\n" )
unless $cmd =~ /GOOD_PASSPHRASE/;
$self->end_gnupg unless $args{tie_mode};
@@ -708,7 +719,7 @@
$self->run_gnupg;
- $self->decrypt_postwrite( @_ ) unless $args{tie_mode};
+ return $self->decrypt_postwrite( @_ ) unless $args{tie_mode};
}
sub decrypt_postwrite($%) {
@@ -724,16 +735,18 @@
}
$self->send_passphrase( $passphrase );
-
($cmd,$arg) = $self->read_from_status;
+
$self->abort_gnupg ( "invalid passphrase - $cmd\n" )
if $cmd =~ /BAD_PASSPHRASE/;
+
my $sig = undef;
+
if ( ! $args{symmetric} ) {
- $self->abort_gnupg ( "protocol error: expected GOOD_PASSPHRASE got $cmd: \n" )
- unless $cmd =~ /GOOD_PASSPHRASE/;
-
- $sig = $self->decrypt_postread() unless $args{tie_mode};
+ $self->abort_gnupg ( "protocol error: expected GOOD_PASSPHRASE got $cmd: \n" )
+ unless $cmd =~ /GOOD_PASSPHRASE/;
+
+ $sig = $self->decrypt_postread() unless $args{tie_mode};
} else {
# gnupg 1.0.2 adds this status message
( $cmd, $arg ) = $self->read_from_status() if $cmd =~ /BEGIN_DECRYPTION/;
Modified: trunk/libgnupg-perl/GnuPG.spec
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgnupg-perl/GnuPG.spec?rev=56281&op=diff
==============================================================================
--- trunk/libgnupg-perl/GnuPG.spec (original)
+++ trunk/libgnupg-perl/GnuPG.spec Sat Apr 17 07:36:58 2010
@@ -1,6 +1,6 @@
Summary: Perl interface to the Gnu Privacy Guard
Name: GnuPG
-Version: 0.12
+Version: 0.14
Release: 1c
Source: http://www.cpan.org/modules/by-module/GnuPG/%{name}-%{version}.tar.gz
Copyright: GPL
@@ -41,6 +41,14 @@
%doc README ChangeLog NEWS
%changelog
+* Fri Apr 16 2010 Mark B. Frost <mark.frost at icainformatics.com>
+ [0.14-1c]
+- Updated to version 0.14.
+
+* Fri Apr 16 2010 Mark B. Frost <mark.frost at icainformatics.com>
+ [0.13-1c]
+- Updated to version 0.13.
+
* Wed Feb 03 2010 Mark B. Frost <mark.frost at icainformatics.com>
[0.12-1c]
- Updated to version 0.12.
Modified: trunk/libgnupg-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgnupg-perl/META.yml?rev=56281&op=diff
==============================================================================
--- trunk/libgnupg-perl/META.yml (original)
+++ trunk/libgnupg-perl/META.yml Sat Apr 17 07:36:58 2010
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: GnuPG
-version: 0.12
+version: 0.13
abstract: ~
author: []
license: unknown
Modified: trunk/libgnupg-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgnupg-perl/debian/changelog?rev=56281&op=diff
==============================================================================
--- trunk/libgnupg-perl/debian/changelog (original)
+++ trunk/libgnupg-perl/debian/changelog Sat Apr 17 07:36:58 2010
@@ -1,17 +1,20 @@
-libgnupg-perl (0.12-1) UNRELEASED; urgency=low
+libgnupg-perl (0.14-1) UNRELEASED; urgency=low
- # only documentation changes
- IGNORE-VERSION: 0.12-1
+ TODO: One test fails (also on cpantesters.org).
[ Jonathan Yu ]
* Rewrite control description
[ Salvatore Bonaccorso ]
- * New upstream release
+ * New upstream release (0.12).
* Drop fix-spelling-error-in-manpage.patch as it is applied upstream
in a slightly modified version.
- -- Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com> Sat, 06 Feb 2010 14:12:12 +0100
+ [ Ansgar Burchardt ]
+ * New upstream release (0.14).
+ * No longer install README.
+
+ -- Ansgar Burchardt <ansgar at 43-1.org> Sat, 17 Apr 2010 16:15:13 +0900
libgnupg-perl (0.11-1) unstable; urgency=low
Modified: trunk/libgnupg-perl/debian/libgnupg-perl.docs
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgnupg-perl/debian/libgnupg-perl.docs?rev=56281&op=diff
==============================================================================
--- trunk/libgnupg-perl/debian/libgnupg-perl.docs (original)
+++ trunk/libgnupg-perl/debian/libgnupg-perl.docs Sat Apr 17 07:36:58 2010
@@ -1,2 +1,1 @@
NEWS
-README
More information about the Pkg-perl-cvs-commits
mailing list