Package: apt-file
Version: 2.4.2
Severity: important

Running `apt-file search 'pattern'` simply prints
grep: conflicting matchers specified
grep: conflicting matchers specified
grep: conflicting matchers specified
grep: conflicting matchers specified
grep: conflicting matchers specified

with every pattern I've tried. I have tried running the script as different
users, in different shells (bash and zsh), and with different Perl versions
(5.10,1 and 5.12.3).

However, when the '--regexp' option is given, this error does not occur and
the program behaves normally. The verbose output (below) suggests that the
problem is with zfgrep in the do_grep subroutine.

% apt-file -v search "foo"
D: Using cache directory /var/cache/apt/apt-file
D: reading sources file /etc/apt/sources.list
D: got 'deb     ftp://ftp.us.debian.org/debian/ wheezy main non-free contrib'
D: kept 'deb ftp://ftp.us.debian.org/debian/ wheezy main non-free contrib'
D: got 'deb     http://security.debian.org/ wheezy/updates main contrib 
non-free'
D: kept 'deb http://security.debian.org/ wheezy/updates main contrib non-free'
D: got 'deb     ftp://ftp.us.debian.org/debian/ sid main non-free contrib'
D: kept 'deb ftp://ftp.us.debian.org/debian/ sid main non-free contrib'
D: got 'deb     ftp://ftp.us.debian.org/debian/ experimental main non-free 
contrib'
D: kept 'deb ftp://ftp.us.debian.org/debian/ experimental main non-free contrib'
D: got 'deb     ftp://ftp.debian-multimedia.org wheezy main non-free'
D: kept 'deb ftp://ftp.debian-multimedia.org wheezy main non-free'
D: got 'deb     ftp://ftp.debian-multimedia.org sid main non-free'
D: kept 'deb ftp://ftp.debian-multimedia.org sid main non-free'
D: regexp: ^(.*?foo[^\s]*)\s+(\S+)\s*$
D: Search in 
\/var\/cache\/apt\/apt\-file\/ftp\.us\.debian\.org_debian_dists_wheezy_Contents\-amd64\.gz
 using zfgrep  foo
grep: conflicting matchers specified

D: Search in 
\/var\/cache\/apt\/apt\-file\/ftp\.us\.debian\.org_debian_dists_sid_Contents\-amd64\.gz
 using zfgrep  foo
grep: conflicting matchers specified

D: Search in 
\/var\/cache\/apt\/apt\-file\/ftp\.us\.debian\.org_debian_dists_experimental_Contents\-amd64\.gz
 using zfgrep  foo
grep: conflicting matchers specified

D: Search in 
\/var\/cache\/apt\/apt\-file\/ftp\.debian\-multimedia\.org_dists_wheezy_Contents\-amd64\.gz
 using zfgrep  foo
grep: conflicting matchers specified

D: Search in 
\/var\/cache\/apt\/apt\-file\/ftp\.debian\-multimedia\.org_dists_sid_Contents\-amd64\.gz
 using zfgrep  foo
grep: conflicting matchers specified


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-dbb-deb (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-file depends on:
ii  curl                          7.21.3-1   Get a file from an HTTP, HTTPS or 
ii  libapt-pkg-perl               0.1.24+b1  Perl interface to libapt-pkg
ii  libconfig-file-perl           1.50-2     Parses simple configuration files
ii  libfile-temp-perl             0.22-1     Perl module to create a temporary 
ii  liblist-moreutils-perl        0.25~02-1  Perl module with additional list f
ii  libregexp-assemble-perl       0.34-5     Assemble multiple Regular Expressi
ii  perl                          5.10.1-17  Larry Wall's Practical Extraction 
ii  perl-modules [libfile-temp-pe 5.10.1-17  Core Perl modules

Versions of packages apt-file recommends:
pn  python-apt                    <none>     (no description available)

Versions of packages apt-file suggests:
ii  openssh-client                1:5.8p1-2  secure shell (SSH) client, for sec
ii  sudo                          1.7.4p6-1  Provide limited super user privile

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to