Package: libdpkg-perl
Version: 1.15.8.10
Severity: normal
Given the following script:
---------
#!/usr/bin/perl
use strict;
use warnings;
use Dpkg::Control::Hash;
my $rel = Dpkg::Control::Hash->new(allow_pgp=>1);
$rel->load("/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_InRelease");
foreach my $key (sort keys %{$rel}) {
print "K: $key\n";
print "V: $rel->{$key}\n";
}
---------
I get the output:
readrel: error: syntax error in
/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_InRelease at line
1537: line with unknown format (not field-colon-value)
This is the relevant part of the InRelease file:
---------
1534 f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec
20 non-free/debian-installer/binary-kfreebsd-amd64/Packages.gz
1535 d3dda84eb03b9738d118eb2be78e246106900493c0ae07819ad60815134a8058
14 non-free/debian-installer/binary-kfreebsd-amd64/Packages.bz2
1536 -----BEGIN PGP SIGNATURE-----
1537 Version: GnuPG v1.4.9 (GNU/Linux)
1538 iQIcBAEBAgAGBQJNeoUbAAoJEK7UsG9HMEH6DYUP/1m/VgSdgSj+Cyv+282xvFOn
1539 gmgCR5IA51NEJvfHXIHPmHte18vSU2TO6l64M07aNgFTk22UnSl5mwnTYh+deTAM
1540 xwAAlb7P4Iq7csmchobutgvpQLBMzVjqq0Zu7IX9mO2mjrhBkhcQqGdVz3X1pXPl
1541 +a7lnt0frDd5JjkV03+NDIuNN2H2DzF8rHNuG1kajUV6E/z+LMaamvvShduK1vsS
---------
So it looks like it's choking on the inline PGP signature, despite
using allow_pgp=>1 to tell it to ignore it.
I don't think it's me being stupid (the script works file on regular
Release files with no PGP).
Regards,
Roger
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (550, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libdpkg-perl depends on:
ii dpkg 1.15.8.10 Debian package management system
ii libtimedate-perl 1.2000-1 collection of modules to manipulat
ii perl 5.10.1-17 Larry Wall's Practical Extraction
Versions of packages libdpkg-perl recommends:
ii bzip2 1.0.5-6 high-quality block-sorting file co
ii xz-utils 5.0.0-2 XZ-format compression utilities
Versions of packages libdpkg-perl suggests:
ii binutils 2.21.0.20110302-2 The GNU assembler, linker and bina
ii debian-keyring 2011.03.03 GnuPG keys of Debian Developers
ii gnupg 1.4.11-3 GNU privacy guard - a free PGP rep
ii gpgv 1.4.11-3 GNU privacy guard - signature veri
ii patch 2.6.1-1 Apply a diff file to an original
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]