Your message dated Mon, 24 Mar 2008 10:02:27 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#470488: fixed in apt-file 2.1.0
has caused the Debian Bug report #470488,
regarding apt-file: Speed can be increased by using zgrep
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
470488: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470488
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: apt-file
Version: 2.0.8.2
Severity: wishlist
Tags: patch
In the case of non-regexp searches, apt-file's speed can be increased by a
factor of two by using zgrep. Patch is attached.
--- apt-file 2008-03-11 15:51:32.000000000 +0100
+++ /usr/bin/apt-file 2006-11-14 15:43:42.000000000 +0100
@@ -238,9 +238,6 @@
my ($pack, $file);
debug "regexp: $pattern";
$|=1;
- my $zcat = $Conf->{is_regexp} ? "zcat" :
- $Conf->{ignore_case} ? "zfgrep -i $Conf->{pattern}" :
- "zfgrep $Conf->{pattern}";
my $regexp = eval { $Conf->{ignore_case} ? qr/$pattern/i : qr/$pattern/ };
error($@) if $@;
foreach(@$data) {
@@ -248,8 +245,8 @@
next if (! -f $file);
$file = quotemeta $file;
debug "Search in $file";
- open (ZCAT, "$zcat $file |") ||
- warning "Can't $zcat $file";
+ open (ZCAT, "zcat $file |") ||
+ warning "Can't zcat $file";
while(<ZCAT>) {
next if ! (($pack, $file) = /$regexp/);
debug_line ".";
--- End Message ---
--- Begin Message ---
Source: apt-file
Source-Version: 2.1.0
We believe that the bug you reported is fixed in the latest version of
apt-file, which is due to be installed in the Debian FTP archive:
apt-file_2.1.0.dsc
to pool/main/a/apt-file/apt-file_2.1.0.dsc
apt-file_2.1.0.tar.gz
to pool/main/a/apt-file/apt-file_2.1.0.tar.gz
apt-file_2.1.0_all.deb
to pool/main/a/apt-file/apt-file_2.1.0_all.deb
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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Thijs Kinkhorst <[EMAIL PROTECTED]> (supplier of updated apt-file 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 [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 24 Mar 2008 10:47:28 +0100
Source: apt-file
Binary: apt-file
Architecture: source all
Version: 2.1.0
Distribution: unstable
Urgency: low
Maintainer: Stefan Fritsch <[EMAIL PROTECTED]>
Changed-By: Thijs Kinkhorst <[EMAIL PROTECTED]>
Description:
apt-file - APT package searching utility -- command-line interface
Closes: 259446 293942 320322 353275 356790 361878 364411 375578 376828 380736
382312 384013 397381 402228 408309 412133 441041 446621 448358 451840 456166
467619 469375 470488
Changes:
apt-file (2.1.0) unstable; urgency=low
.
[ Stefan Fritsch ]
* Hijack package. New maintainer.
* Add Thijs as uploader.
* Acknowledge NMU (closes: #397381). Thanks to Gunnar Wolf and Kevin Glynn.
* Import changes from Ubuntu. This fixes these bugs:
- Regular expression search with -x does not really work (Closes: #259446)
- fails to read /etc/apt/sources.list.d/ (Closes: #353275)
- manpage says dpkg -S when it means dpkg -L (Closes: #376828)
- please apply more complete patch to fix output (Closes: #382312)
- silently fails when there are no file lists (Closes: #408309)
- bash_completion: `_apt-file': not a valid identifier (Closes: #441041)
- bash_completion does not complete filename after search command
(Closes: #448358)
- typo in apt-file.conf (Closes: #451840)
Thanks to Daniel Hahler, Emmet Hikory, and Barry deFreese.
* Fix misleading error message when cache dir does not exist
(Closes: #456166).
* Set umask on apt-file update to ensure cache is always world readable
(Closes: #361878).
* Don't show files repeatedly which are in the same package in several suites
(Closes: #402228).
* Allow bundling of short options (Closes: #384013).
* Correctly extract file and directory names from apt config
(Closes: #446621).
* Use zfgrep to speed up non-regex searches (Closes: #470488). To be able to
do this, we need a different way to trim the header of Contents.gz than
used in the patch for bug #382312 (Closes: #293942).
* Pass 'set -x' to the shell when in verbose mode.
* Refactor apt-file.conf:
- Move common code blocks in apt-file.conf to separate variables.
- Use gunzip -l instead of file to check if a file is gzipped.
- Fix misleading comments (Closes: #356790).
- Remove chmod 644 since we now set umask correctly.
* Correctly handle parentheses in regexp searches (Closes: #467619).
* Correctly handle fixed string (-F) searches (Closes: #469375).
* Remove update-notifier hook file when package is purged.
* Remove cdbs build dependency.
* Add vcs header to debian/control.
.
[ Thijs Kinkhorst ]
* Remove ancient versioned-depends on essential package gzip.
* Add missing debhelper compat file.
* Correct misspelled architecture variable name, makes architecture
selection work again. Thanks Enno Cramer (Closes: #364411).
* Change suggestion from ssh to openssh-client (Closes: #375578).
* Many documentation cleanups (thanks Era Eriksson for some,
Closes: #320322, #412133).
* Rebuild man page from sgml during package build.
* Change section to admin, following override.
* Drop -N parameter from wget command since it's not allowed in
combination with -O according to the manual (Closes: #380736).
Files:
f6d9a971a3e88010ef712d02faa02af5 987 admin optional apt-file_2.1.0.dsc
c24b6cca1f9b52f968ad08cca489c819 18930 admin optional apt-file_2.1.0.tar.gz
fe2d70e295b184e879c99b57615fee43 16924 admin optional apt-file_2.1.0_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBR+d6LWz0hbPcukPfAQIPOwf9Hu0KyQ4cUzHMW6bEHIqUwlvRWfsJ49/4
zUbu7Y2wE4LtCIxuvFP/FLu0isZFfuuoMaoJANdetbgYkVJVv3S+FdQGSQjmbbmy
awoiTaztNsiNVSiZGARwMMJMI6WJmRZUgR5F+IonVl1CI4+PZR/3evdvagtQPsau
NthX0TSKXCKbJvRZoEojRA9jBSCPQ6QIzHuhb9aEzyteU6Cc+YC/C2G85R+rA/iW
Xsl96einbuV4A0myCrBxffA/i9QOs4pThQu/5k/038Q61u0y1bW5wKZZGWgHrnyL
Fjdx5C0E3QVtW7IXBfTkBKelL79eaC5fNX9yjW1TyotDeINO271sFA==
=1ZfE
-----END PGP SIGNATURE-----
--- End Message ---