Package: apt-file
Version: 2.5.2.2
Severity: important
Tags: patch
Hello,
I saw that my sources.list file was no longer parsable to apt-file,
since this line (135) was added :
next if !m/^deb\s/;
Since I think spaces at begining of lines doesn't matter, and since apt
doesn't crash on lines starting with \s, I think this update introduced
a bug, and so, I suggest the following patch.
Thanks for your consideration, and for your time.
Cheers,
--
PEB
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-file depends on:
ii curl 7.37.0-1+b1
ii libapt-pkg-perl 0.1.29+b1
ii libconfig-file-perl 1.50-2
ii liblist-moreutils-perl 0.33-2
ii libregexp-assemble-perl 0.35-8
ii perl 5.18.2-4
ii perl-modules [libfile-temp-perl] 5.18.2-4
Versions of packages apt-file recommends:
ii python 2.7.6-2
ii python-apt 0.9.3.8
Versions of packages apt-file suggests:
ii openssh-client 1:6.6p1-6
ii sudo 1.8.9p5-1
-- no debconf information
--- /home/peuh/crans/custom/packages/apt-file/apt-file-2.5.2.2/apt-file 2014-06-22 11:03:50.000000000 +0200
+++ /usr/bin/apt-file 2014-07-09 21:41:49.780877466 +0200
@@ -132,7 +132,7 @@
|rpm-
)
/xo;
- next if !m/^deb\s/;
+ next if !m/^\s*deb\s/;
chomp;
my $line = $_;
debug "got \'$line\'";