[Pgp-tools-commit] r316 - in trunk: caff debian

Thijs Kinkhorst thijs at alioth.debian.org
Tue Apr 24 09:18:50 UTC 2007


Author: thijs
Date: 2007-04-24 09:18:50 +0000 (Tue, 24 Apr 2007)
New Revision: 316

Modified:
   trunk/caff/pgp-fixkey
   trunk/debian/changelog
Log:
  + Fix perl warnings when calling pgp-fixkey with unknown keyid.

Modified: trunk/caff/pgp-fixkey
===================================================================
--- trunk/caff/pgp-fixkey	2007-03-02 13:12:47 UTC (rev 315)
+++ trunk/caff/pgp-fixkey	2007-04-24 09:18:50 UTC (rev 316)
@@ -291,6 +291,10 @@
 	};
 	my $keyinfo = $stdout;
 	my @publine = grep { /^pub/ } (split /\n/, $stdout);
+	if ($#publine < 0) {
+		warn ("No public key found for $keyid.\n");
+		next;
+	}
 	my (undef, undef, undef, undef, $longkeyid, undef, undef, undef, undef, undef, undef, $flags) = split /:/, pop @publine;
 	my $can_encrypt = $flags =~ /E/;
 	unless (defined $longkeyid) {

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2007-03-02 13:12:47 UTC (rev 315)
+++ trunk/debian/changelog	2007-04-24 09:18:50 UTC (rev 316)
@@ -2,11 +2,12 @@
 
   * caff:
     + Fix syntax error in example config variables (Closes: #413020).
+    + Fix perl warnings when calling pgp-fixkey with unknown keyid.
   * gpg-key2ps:
     + Add '-1' option to only display one column of slips, for extra
       wide keys (Closes: #399474).
 
- -- Thijs Kinkhorst <thijs at debian.org>  Fri,  2 Mar 2007 14:12:03 +0100
+ -- Thijs Kinkhorst <thijs at debian.org>  Tue, 24 Apr 2007 11:17:43 +0200
 
 signing-party (0.4.9-1) unstable; urgency=low
 




More information about the Pgp-tools-commit mailing list