Package: dpkg-sig
Version: 0.12
Severity: normal
If -k is used, no maintainer name is determined, presumably due to a
change in the gpg output format. This patch fixes this problem by
using the machine-readable --with-colons format.
Julian
--- /usr/bin/dpkg-sig 2005-11-01 08:57:42.000000000 +0000
+++ /tmp/dpkg-sig 2006-02-13 20:30:48.000000000 +0000
@@ -296,7 +296,8 @@
my $signer_name = $key || $maintainer;
if ($signer_name =~ /^(0x)?[0-9A-F]{8}$/i) {
- $signer_name = (split (/\s+/, (qx/gpg --list-keys
'$signer_name'/)[0], 4))[3];
+ my $uidline = (grep /^uid:/, qx/gpg --list-keys --with-colons
--fixed-list-mode $signer_name/)[0];
+ $signer_name = (split /:/, $uidline)[9] if defined $uidline;
chomp($signer_name);
}