Debian Bug report logs - #694024
Don't print the file name if only one file is grepped

version graph

Package: zutils; Maintainer for zutils is Daniel Baumann <daniel.baumann@progress-linux.org>; Source for zutils is src:zutils (PTS, buildd, popcon).

Affects: apt-file

Reported by: Paul Wise <pabs@debian.org>

Date: Fri, 23 Nov 2012 03:51:01 UTC

Severity: serious

Tags: patch

Fixed in version zutils/0.9-6

Done: Daniel Baumann <daniel.baumann@progress-technologies.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Stefan Fritsch <sf@debian.org>:
Bug#694024; Package apt-file. (Fri, 23 Nov 2012 03:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
New Bug report received and forwarded. Copy sent to Stefan Fritsch <sf@debian.org>. (Fri, 23 Nov 2012 03:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Paul Wise <pabs@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt-file spews paths to the Contents files amongst the results
Date: Fri, 23 Nov 2012 11:46:33 +0800
[Message part 1 (text/plain, inline)]
Package: apt-file
Version: 2.5.1
Severity: important

This bug needs to be fixed in wheezy, apt-file spews paths to the
Contents files amongst the results (it happens for both show/search):

pabs@chianamo ~ $ apt-file search apt-file
aide-common: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
aide-common: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:etc/apt/apt-file.conf
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:etc/bash_completion.d/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/diffindex-download
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/diffindex-rred
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/rapt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/apt-file/apt-file-update.update-notifier
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/apt-file/do-apt-file-update
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/apt-file/is-cache-empty
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/doc/apt-file/README
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/doc/apt-file/changelog.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/doc/apt-file/copyright
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/apt-file.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/diffindex-download.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/diffindex-rred.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/rapt-file.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:etc/apt/apt-file.conf
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:etc/bash_completion.d/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/diffindex-download
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/diffindex-rred
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/rapt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/apt-file/apt-file-update.update-notifier
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/apt-file/do-apt-file-update
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/apt-file/is-cache-empty
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/doc/apt-file/README
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/doc/apt-file/changelog.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/doc/apt-file/copyright
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/apt-file.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/diffindex-download.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/diffindex-rred.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/rapt-file.1.gz
fish: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/fish/completions/apt-file.fish
fish: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/fish/completions/apt-file.fish
live-build: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/live/build/hooks/001-update-apt-file-cache.chroot
live-build: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/live/build/hooks/001-update-apt-file-cache.chroot
zsh: //var/cache/apt/apt-file/http.debian.net_debian_dists_experimental_main_Contents-amd64.gz:usr/share/zsh/functions/Completion/Debian/_apt-file
zsh: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/zsh/functions/Completion/Debian/_apt-file
zsh: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/zsh/functions/Completion/Debian/_apt-file
zsh-beta: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/zsh-beta/functions/Completion/Debian/_apt-file
zsh-beta: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/zsh-beta/functions/Completion/Debian/_apt-file

It used to look like this:

pabs@chianamo ~ $ apt-file search apt-file | sed s_//.*:__
aide-common: usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
aide-common: usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
apt-file: etc/apt/apt-file.conf
apt-file: etc/bash_completion.d/apt-file
apt-file: usr/bin/apt-file
apt-file: usr/bin/diffindex-download
apt-file: usr/bin/diffindex-rred
apt-file: usr/bin/rapt-file
apt-file: usr/share/apt-file/apt-file-update.update-notifier
apt-file: usr/share/apt-file/do-apt-file-update
apt-file: usr/share/apt-file/is-cache-empty
apt-file: usr/share/doc/apt-file/README
apt-file: usr/share/doc/apt-file/changelog.gz
apt-file: usr/share/doc/apt-file/copyright
apt-file: usr/share/man/man1/apt-file.1.gz
apt-file: usr/share/man/man1/diffindex-download.1.gz
apt-file: usr/share/man/man1/diffindex-rred.1.gz
apt-file: usr/share/man/man1/rapt-file.1.gz
apt-file: etc/apt/apt-file.conf
apt-file: etc/bash_completion.d/apt-file
apt-file: usr/bin/apt-file
apt-file: usr/bin/diffindex-download
apt-file: usr/bin/diffindex-rred
apt-file: usr/bin/rapt-file
apt-file: usr/share/apt-file/apt-file-update.update-notifier
apt-file: usr/share/apt-file/do-apt-file-update
apt-file: usr/share/apt-file/is-cache-empty
apt-file: usr/share/doc/apt-file/README
apt-file: usr/share/doc/apt-file/changelog.gz
apt-file: usr/share/doc/apt-file/copyright
apt-file: usr/share/man/man1/apt-file.1.gz
apt-file: usr/share/man/man1/diffindex-download.1.gz
apt-file: usr/share/man/man1/diffindex-rred.1.gz
apt-file: usr/share/man/man1/rapt-file.1.gz
fish: usr/share/fish/completions/apt-file.fish
fish: usr/share/fish/completions/apt-file.fish
live-build: usr/share/live/build/hooks/001-update-apt-file-cache.chroot
live-build: usr/share/live/build/hooks/001-update-apt-file-cache.chroot
zsh: usr/share/zsh/functions/Completion/Debian/_apt-file
zsh: usr/share/zsh/functions/Completion/Debian/_apt-file
zsh: usr/share/zsh/functions/Completion/Debian/_apt-file
zsh-beta: usr/share/zsh-beta/functions/Completion/Debian/_apt-file
zsh-beta: usr/share/zsh-beta/functions/Completion/Debian/_apt-file


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.6-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-file depends on:
ii  curl                              7.26.0-1
ii  libapt-pkg-perl                   0.1.26+b1
ii  libconfig-file-perl               1.50-2
ii  liblist-moreutils-perl            0.33-1+b1
ii  libregexp-assemble-perl           0.35-7
ii  perl                              5.14.2-15
ii  perl-modules [libfile-temp-perl]  5.14.2-15

Versions of packages apt-file recommends:
ii  python      2.7.3~rc2-1
ii  python-apt  0.8.4

Versions of packages apt-file suggests:
ii  openssh-client  1:6.0p1-3
ii  sudo            1.8.5p2-1

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Stefan Fritsch <sf@debian.org>:
Bug#694024; Package apt-file. (Sat, 24 Nov 2012 16:18:05 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Fritsch <sf@sfritsch.de>:
Extra info received and forwarded to list. Copy sent to Stefan Fritsch <sf@debian.org>. (Sat, 24 Nov 2012 16:18:05 GMT) (full text, mbox, link).


Message #10 received at 694024@bugs.debian.org (full text, mbox, reply):

From: Stefan Fritsch <sf@sfritsch.de>
To: Paul Wise <pabs@debian.org>
Cc: 694024@bugs.debian.org
Subject: Re: Bug#694024: apt-file spews paths to the Contents files amongst the results
Date: Sat, 24 Nov 2012 17:15:58 +0100
I cannot reproduce this. Maybe the output of "apt-file search -v apt-
file" gives more hints what goes wrong?



Information forwarded to debian-bugs-dist@lists.debian.org, Stefan Fritsch <sf@debian.org>:
Bug#694024; Package apt-file. (Sun, 25 Nov 2012 02:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
Extra info received and forwarded to list. Copy sent to Stefan Fritsch <sf@debian.org>. (Sun, 25 Nov 2012 02:57:05 GMT) (full text, mbox, link).


Message #15 received at 694024@bugs.debian.org (full text, mbox, reply):

From: Paul Wise <pabs@debian.org>
To: 694024@bugs.debian.org
Subject: Re: Bug#694024: apt-file spews paths to the Contents files amongst the results
Date: Sun, 25 Nov 2012 10:56:20 +0800
[Message part 1 (text/plain, inline)]
Control: retitle -1 zgrep from zutils causes apt-file to paths to the Contents files amongst the results
Control: severity -1 normal

On Sat, 2012-11-24 at 17:15 +0100, Stefan Fritsch wrote:

> I cannot reproduce this. Maybe the output of "apt-file search -v apt-
> file" gives more hints what goes wrong?

Output below. I think I know what happened; after Axel Beckert blogged
about archive stuff, I installed zutils, which seems to cause this
issue. However the zutils zfgrep has the exactly the same output as gzip
zfgrep according diff and cmp, so I don't know where the bug lies. Maybe
you could use some sort of perl execution trace to compare the apt-file
runs with zutils zfgrep and gzip zfgrep?

http://noone.org/blog/English/Computer/Debian/CoolTools/zutils.html

pabs@chianamo ~ $ zfgrep  -- apt\-file /var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz > zfgrep.zutils.txt
pabs@chianamo ~ $ zfgrep.gzip  -- apt\-file /var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz > zfgrep.gzip.txt
pabs@chianamo ~ $ diff -u zfgrep.gzip.txt zfgrep.zutils.txt
pabs@chianamo ~ $ cmp zfgrep.gzip.txt zfgrep.zutils.txt
pabs@chianamo ~ $ /bin/zfgrep --version
Zgrep (zutils) 0.9
Copyright (C) 2011 Antonio Diaz Diaz.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
pabs@chianamo ~ $ apt-file search -v apt-file
D: Using cache directory /var/cache/apt/apt-file
D: reading sources file /etc/apt/sources.list
D: got 'deb http://security.debian.org/ testing/updates main contrib non-free'
D: kept 'deb http://security.debian.org/ testing/updates main contrib non-free'
D: got 'deb http://http.debian.net/debian/ testing main contrib non-free'
D: kept 'deb http://http.debian.net/debian/ testing main contrib non-free'
D: got 'deb http://http.debian.net/debian/ unstable main contrib non-free'
D: kept 'deb http://http.debian.net/debian/ unstable main contrib non-free'
D: got 'deb http://http.debian.net/debian/ experimental main contrib non-free'
D: kept 'deb http://http.debian.net/debian/ experimental main contrib non-free'
D: regexp: ^(.*?apt\-file[^\s]*)\s+(\S+)\s*$
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_testing_main_Contents\-amd64\.gz using zfgrep  -- apt\-file
.....................
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_testing_contrib_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_testing_non\-free_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_unstable_main_Contents\-amd64\.gz using zfgrep  -- apt\-file
.....................
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_unstable_contrib_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_unstable_non\-free_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_experimental_main_Contents\-amd64\.gz using zfgrep  -- apt\-file
.
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_experimental_contrib_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_experimental_non\-free_Contents\-amd64\.gz using zfgrep  -- apt\-file

aide-common: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
aide-common: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:etc/apt/apt-file.conf
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:etc/bash_completion.d/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/diffindex-download
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/diffindex-rred
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/bin/rapt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/apt-file/apt-file-update.update-notifier
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/apt-file/do-apt-file-update
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/apt-file/is-cache-empty
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/doc/apt-file/README
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/doc/apt-file/changelog.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/doc/apt-file/copyright
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/apt-file.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/diffindex-download.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/diffindex-rred.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/man/man1/rapt-file.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:etc/apt/apt-file.conf
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:etc/bash_completion.d/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/apt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/diffindex-download
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/diffindex-rred
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/bin/rapt-file
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/apt-file/apt-file-update.update-notifier
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/apt-file/do-apt-file-update
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/apt-file/is-cache-empty
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/doc/apt-file/README
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/doc/apt-file/changelog.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/doc/apt-file/copyright
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/apt-file.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/diffindex-download.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/diffindex-rred.1.gz
apt-file: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/man/man1/rapt-file.1.gz
fish: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/fish/completions/apt-file.fish
fish: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/fish/completions/apt-file.fish
live-build: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/live/build/hooks/001-update-apt-file-cache.chroot
live-build: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/live/build/hooks/001-update-apt-file-cache.chroot
zsh: //var/cache/apt/apt-file/http.debian.net_debian_dists_experimental_main_Contents-amd64.gz:usr/share/zsh/functions/Completion/Debian/_apt-file
zsh: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/zsh/functions/Completion/Debian/_apt-file
zsh: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/zsh/functions/Completion/Debian/_apt-file
zsh-beta: //var/cache/apt/apt-file/http.debian.net_debian_dists_testing_main_Contents-amd64.gz:usr/share/zsh-beta/functions/Completion/Debian/_apt-file
zsh-beta: //var/cache/apt/apt-file/http.debian.net_debian_dists_unstable_main_Contents-amd64.gz:usr/share/zsh-beta/functions/Completion/Debian/_apt-file
pabs@chianamo ~ $ sudo apt-get purge zutils
[sudo] password for pabs: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  zutils*
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
After this operation, 2,479 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 509683 files and directories currently installed.)
Removing zutils ...
Purging configuration files for zutils ...
Processing triggers for man-db ...
Processing triggers for install-info ...
pabs@chianamo ~ $ /bin/zfgrep --version
zgrep (gzip) 1.5
Copyright (C) 2010-2012 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
pabs@chianamo ~ $ apt-file search -v apt-file
D: Using cache directory /var/cache/apt/apt-file
D: reading sources file /etc/apt/sources.list
D: got 'deb http://security.debian.org/ testing/updates main contrib non-free'
D: kept 'deb http://security.debian.org/ testing/updates main contrib non-free'
D: got 'deb http://http.debian.net/debian/ testing main contrib non-free'
D: kept 'deb http://http.debian.net/debian/ testing main contrib non-free'
D: got 'deb http://http.debian.net/debian/ unstable main contrib non-free'
D: kept 'deb http://http.debian.net/debian/ unstable main contrib non-free'
D: got 'deb http://http.debian.net/debian/ experimental main contrib non-free'
D: kept 'deb http://http.debian.net/debian/ experimental main contrib non-free'
D: regexp: ^(.*?apt\-file[^\s]*)\s+(\S+)\s*$
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_testing_main_Contents\-amd64\.gz using zfgrep  -- apt\-file
.................
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_testing_contrib_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_testing_non\-free_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_unstable_main_Contents\-amd64\.gz using zfgrep  -- apt\-file
.................
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_unstable_contrib_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_unstable_non\-free_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_experimental_main_Contents\-amd64\.gz using zfgrep  -- apt\-file
.
D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_experimental_contrib_Contents\-amd64\.gz using zfgrep  -- apt\-file

D: Search in \/var\/cache\/apt\/apt\-file\/http\.debian\.net_debian_dists_experimental_non\-free_Contents\-amd64\.gz using zfgrep  -- apt\-file

aide-common: /usr/share/aide/config/aide/aide.conf.d/31_aide_apt-file
apt-file: /etc/apt/apt-file.conf
apt-file: /etc/bash_completion.d/apt-file
apt-file: /usr/bin/apt-file
apt-file: /usr/bin/rapt-file
apt-file: /usr/share/apt-file/apt-file-update.update-notifier
apt-file: /usr/share/apt-file/do-apt-file-update
apt-file: /usr/share/apt-file/is-cache-empty
apt-file: /usr/share/doc/apt-file/README
apt-file: /usr/share/doc/apt-file/changelog.gz
apt-file: /usr/share/doc/apt-file/copyright
apt-file: /usr/share/man/man1/apt-file.1.gz
apt-file: /usr/share/man/man1/rapt-file.1.gz
fish: /usr/share/fish/completions/apt-file.fish
live-build: /usr/share/live/build/hooks/001-update-apt-file-cache.chroot
zsh: /usr/share/zsh/functions/Completion/Debian/_apt-file
zsh-beta: /usr/share/zsh-beta/functions/Completion/Debian/_apt-file

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Changed Bug title to 'zgrep from zutils causes apt-file to paths to the Contents files amongst the results' from 'apt-file spews paths to the Contents files amongst the results' Request was from Paul Wise <pabs@debian.org> to 694024-submit@bugs.debian.org. (Sun, 25 Nov 2012 02:57:05 GMT) (full text, mbox, link).


Severity set to 'normal' from 'important' Request was from Paul Wise <pabs@debian.org> to 694024-submit@bugs.debian.org. (Sun, 25 Nov 2012 02:57:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Stefan Fritsch <sf@debian.org>:
Bug#694024; Package apt-file. (Sun, 25 Nov 2012 16:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Fritsch <sf@sfritsch.de>:
Extra info received and forwarded to list. Copy sent to Stefan Fritsch <sf@debian.org>. (Sun, 25 Nov 2012 16:03:03 GMT) (full text, mbox, link).


Message #24 received at 694024@bugs.debian.org (full text, mbox, reply):

From: Stefan Fritsch <sf@sfritsch.de>
To: Paul Wise <pabs@debian.org>
Cc: 694024@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#694024: apt-file spews paths to the Contents files amongst the results
Date: Sun, 25 Nov 2012 17:00:19 +0100
reassign 694024 zutils
found 694024 zutils 0.9-5
retitle 694024 Don't print the file name if only one file is grepped
affects 694024 apt-file
thanks

On Sunday 25 November 2012, Paul Wise wrote:
> Output below. I think I know what happened; after Axel Beckert
> blogged about archive stuff, I installed zutils, which seems to
> cause this issue. However the zutils zfgrep has the exactly the
> same output as gzip zfgrep according diff and cmp, so I don't know
> where the bug lies. Maybe you could use some sort of perl
> execution trace to compare the apt-file runs with zutils zfgrep
> and gzip zfgrep?

zfgrep.gzip just calls zgrep -F, which will be zutil's zgrep version 
if zutils is installed.

If you compare

zgrep -F -- apt-file path/to/file
zgrep.gzip -F -- apt-file path/to/file

the output differs. We could work-around this in apt-file by using

zfgrep -- apt-file < path/to/file

But I think zutils should be fixed instead to behave as the normal 
zgrep, especially since it adds a diversion for the normal zgrep.



Bug reassigned from package 'apt-file' to 'zutils'. Request was from Stefan Fritsch <sf@sfritsch.de> to control@bugs.debian.org. (Sun, 25 Nov 2012 16:03:05 GMT) (full text, mbox, link).


No longer marked as found in versions apt-file/2.5.1. Request was from Stefan Fritsch <sf@sfritsch.de> to control@bugs.debian.org. (Sun, 25 Nov 2012 16:03:06 GMT) (full text, mbox, link).


Changed Bug title to 'Don't print the file name if only one file is grepped' from 'zgrep from zutils causes apt-file to paths to the Contents files amongst the results' Request was from Stefan Fritsch <sf@sfritsch.de> to control@bugs.debian.org. (Sun, 25 Nov 2012 16:03:06 GMT) (full text, mbox, link).


Added indication that 694024 affects apt-file Request was from Stefan Fritsch <sf@sfritsch.de> to control@bugs.debian.org. (Sun, 25 Nov 2012 16:03:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel.baumann@progress-technologies.net>:
Bug#694024; Package zutils. (Sun, 25 Nov 2012 16:09:08 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Fritsch <sf@sfritsch.de>:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel.baumann@progress-technologies.net>. (Sun, 25 Nov 2012 16:09:08 GMT) (full text, mbox, link).


Message #37 received at 694024@bugs.debian.org (full text, mbox, reply):

From: Stefan Fritsch <sf@sfritsch.de>
To: Paul Wise <pabs@debian.org>
Cc: 694024@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#694024: apt-file spews paths to the Contents files amongst the results
Date: Sun, 25 Nov 2012 17:06:46 +0100
severity 694024 serious
thanks

On Sunday 25 November 2012, Stefan Fritsch wrote:
> But I think zutils should be fixed instead to behave as the normal 
> zgrep, especially since it adds a diversion for the normal zgrep.

Actually, that's RC. zgrep is in gzip, which is Essential: yes.



Severity set to 'serious' from 'normal' Request was from Stefan Fritsch <sf@sfritsch.de> to control@bugs.debian.org. (Sun, 25 Nov 2012 16:09:10 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel.baumann@progress-technologies.net>:
Bug#694024; Package zutils. (Mon, 03 Dec 2012 23:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Stapelberg <stapelberg@debian.org>:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel.baumann@progress-technologies.net>. (Mon, 03 Dec 2012 23:33:03 GMT) (full text, mbox, link).


Message #44 received at 694024@bugs.debian.org (full text, mbox, reply):

From: Michael Stapelberg <stapelberg@debian.org>
To: Stefan Fritsch <sf@sfritsch.de>
Cc: Paul Wise <pabs@debian.org>, 694024@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#694024: apt-file spews paths to the Contents files amongst the results
Date: Tue, 4 Dec 2012 00:29:28 +0100
[Message part 1 (text/plain, inline)]
tags 694024 + patch
thanks

On Sun, 25 Nov 2012 17:06:46 +0100
Stefan Fritsch <sf@sfritsch.de> wrote:

> severity 694024 serious
> thanks
> 
> On Sunday 25 November 2012, Stefan Fritsch wrote:
> > But I think zutils should be fixed instead to behave as the normal 
> > zgrep, especially since it adds a diversion for the normal zgrep.
> 
> Actually, that's RC. zgrep is in gzip, which is Essential: yes.
I attached a patch which does that:

Description: Don’t print file name if only one file is grepped
 This patch makes zutils behave like grep(1) in that the default for
 grep_show_name is false when one file is being searched and true when
 multiple files are being searched. Of course, -h and -H overwrite the
 default.

Reviews welcome.

-- 
Best regards,
Michael
[grep_show_name.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Michael Stapelberg <stapelberg@debian.org> to control@bugs.debian.org. (Mon, 03 Dec 2012 23:33:17 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel.baumann@progress-technologies.net>:
Bug#694024; Package zutils. (Tue, 04 Dec 2012 17:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to daniel.baumann@progress-technologies.net:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel.baumann@progress-technologies.net>. (Tue, 04 Dec 2012 17:51:03 GMT) (full text, mbox, link).


Message #51 received at 694024@bugs.debian.org (full text, mbox, reply):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: 694024@bugs.debian.org
Subject: Re: Don't print the file name if only one file is grepped
Date: Tue, 04 Dec 2012 18:49:21 +0100
tag 694024 pending
thanks

upstream will release a new version with the fix applied shortly (not 
sure if it's the exact same patch or not), hence waiting for that and 
then backport the fix to the current version in sid.

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/



Added tag(s) pending. Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Tue, 04 Dec 2012 17:51:05 GMT) (full text, mbox, link).


Reply sent to Daniel Baumann <daniel.baumann@progress-technologies.net>:
You have taken responsibility. (Mon, 10 Dec 2012 10:36:04 GMT) (full text, mbox, link).


Notification sent to Paul Wise <pabs@debian.org>:
Bug acknowledged by developer. (Mon, 10 Dec 2012 10:36:04 GMT) (full text, mbox, link).


Message #58 received at 694024-close@bugs.debian.org (full text, mbox, reply):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: 694024-close@bugs.debian.org
Subject: Bug#694024: fixed in zutils 0.9-6
Date: Mon, 10 Dec 2012 10:32:56 +0000
Source: zutils
Source-Version: 0.9-6

We believe that the bug you reported is fixed in the latest version of
zutils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 694024@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <daniel.baumann@progress-technologies.net> (supplier of updated zutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 10 Dec 2012 11:23:06 +0100
Source: zutils
Binary: zutils zutils-dbg
Architecture: source i386
Version: 0.9-6
Distribution: unstable
Urgency: low
Maintainer: Daniel Baumann <daniel.baumann@progress-technologies.net>
Changed-By: Daniel Baumann <daniel.baumann@progress-technologies.net>
Description: 
 zutils     - utilities for dealing with compressed files transparently
 zutils-dbg - utilities for dealing with compressed files transparently (debug)
Closes: 694024
Changes: 
 zutils (0.9-6) unstable; urgency=low
 .
   * Adding patch from upstream to make filenames not prefixed to output by
     default when searching one file (Closes: #694024).
   * Updating to standards version 3.9.4.
Checksums-Sha1: 
 20addf7d3a9cd67aae09205af3044ce68ec1c224 1112 zutils_0.9-6.dsc
 df71539a9a22846eab97f68341d9b4608683c323 3716 zutils_0.9-6.debian.tar.xz
 48f6bfd8e162d3bccabbf78a0d1618da2703fb48 350326 zutils_0.9-6_i386.deb
 d9a775ad8dc309c5849e181549998c47b45bf67b 298460 zutils-dbg_0.9-6_i386.deb
Checksums-Sha256: 
 594eceeb954f5d297e4e10cb0b5f1ad377630d2db1fa812284a5e0bba32b4330 1112 zutils_0.9-6.dsc
 9d61819d8a17612880908b2e3557e0267334a6f2819a3cd62003fa6673242d1a 3716 zutils_0.9-6.debian.tar.xz
 e4a31422c786eb382d76e0b502a34a2f8df570400daf8ff71f42c04be71ac0e2 350326 zutils_0.9-6_i386.deb
 7c89d9b73b970dcd6a2d1dc99ff102477e4bef8958c142aa54ea27ca435180bc 298460 zutils-dbg_0.9-6_i386.deb
Files: 
 a422845355862b6dbced6cda700dbc09 1112 utils extra zutils_0.9-6.dsc
 f9aeca3a402969f56d2916bf64a3699a 3716 utils extra zutils_0.9-6.debian.tar.xz
 b354c4dd50f34f18c5ab84f9ef68c968 350326 utils extra zutils_0.9-6_i386.deb
 e9564918c75886b6397ae64303ecfdc8 298460 debug extra zutils-dbg_0.9-6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlDFuLgACgkQ+C5cwEsrK54q7ACgqZ9NFa7/MIlpPckERtDXx8cz
xaYAoN27mU5Aq9uSS6dL/6krzCIzPLuG
=JtYX
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 18 Jan 2013 07:26:09 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 19 05:44:48 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.