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
Description: This is a digitally signed message part