Your message dated Mon, 07 Feb 2011 23:32:06 +0000
with message-id <[email protected]>
and subject line Bug#612347: fixed in apt-file 2.4.2
has caused the Debian Bug report #612347,
regarding apt-file: empty system cache prevents user cache from being used
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.)
--
612347: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612347
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt-file
Version: 2.4.1
Severity: normal
Tags: patch
I have an empty system cache, but a full user cache:
$ ls /var/cache/apt/apt-file | wc -l
0
$ ls $HOME/.cache/apt-file | wc -l
7
Searching produces an error:
$ apt-file search foo
E: The cache directory is empty. You need to run 'apt-file update' first.
Doing "apt-file update" tells me everything is up-to-date, but further
searches will still fail. The attached restricts that error to the case
where both caches are empty, and fixes the problem for me.
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-trunk-amd64 (SMP w/8 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 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:
ii python-apt 0.7.100.1 Python interface to libapt-pkg
Versions of packages apt-file suggests:
ii openssh-client 1:5.5p1-6 secure shell (SSH) client, for sec
pn sudo <none> (no description available)
-- no debconf information
>From 58eae92049fb5acfd4f134fb7e33197c6c986af0 Mon Sep 17 00:00:00 2001
From: Jeff King <[email protected]>
Date: Mon, 7 Feb 2011 17:05:35 -0500
Subject: [PATCH] check both system and user cache for emptiness
We will use whichever is the more recent of the two caches.
However, the early check for "is the cache empty" could
uselessly trigger if the system cache was empty but the user
cache was not.
Signed-off-by: Jeff King <[email protected]>
---
apt-file | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/apt-file b/apt-file
index ad4f6bf..a9f8d46 100755
--- a/apt-file
+++ b/apt-file
@@ -774,7 +774,8 @@ sub main {
my $sources = parse_sources_list $Conf->{sources_list};
errorx "No valid sources in @{$Conf->{sources_list}}" if !defined $sources;
- if ( $Conf->{is_search} && dir_is_empty( $Conf->{cache} ) ) {
+ if ( $Conf->{is_search} && dir_is_empty( $Conf->{cache} )
+ && defined $Conf->{user_cache} && dir_is_empty( $Conf->{user_cache} ) ) {
errorx "The cache directory is empty. You need to run 'apt-file update' first.";
}
--
1.7.4.rc2.27.gd0787
--- End Message ---
--- Begin Message ---
Source: apt-file
Source-Version: 2.4.2
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.4.2.dsc
to main/a/apt-file/apt-file_2.4.2.dsc
apt-file_2.4.2.tar.gz
to main/a/apt-file/apt-file_2.4.2.tar.gz
apt-file_2.4.2_all.deb
to main/a/apt-file/apt-file_2.4.2_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.
Stefan Fritsch <[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.8
Date: Tue, 08 Feb 2011 00:15:17 +0100
Source: apt-file
Binary: apt-file
Architecture: source all
Version: 2.4.2
Distribution: unstable
Urgency: low
Maintainer: Stefan Fritsch <[email protected]>
Changed-By: Stefan Fritsch <[email protected]>
Description:
apt-file - search for files within Debian packages (command-line interface)
Closes: 612347
Changes:
apt-file (2.4.2) unstable; urgency=low
.
* Correct empty cache detection logic. Closes: #612347
Checksums-Sha1:
d2e1849bc2233bc2d7f7a67b90ca614d1e0fdefe 1053 apt-file_2.4.2.dsc
6941014a1349a656ecb9c33d18f05b77267c3a5f 41503 apt-file_2.4.2.tar.gz
6e20325376bb6e8f311e29d7487d432b62fa5dc5 32296 apt-file_2.4.2_all.deb
Checksums-Sha256:
0eac02e80384cf5ced6dff34ba6dd92d337844a8f9e1f1e7d99751c20a0f93d0 1053
apt-file_2.4.2.dsc
16deab8473432738f266420484c0d18f7ab6a2a274e782b98bc557c8ab93a202 41503
apt-file_2.4.2.tar.gz
9493feaab6a2e2d2a75a4f630699bea4da74c5cc44dd916015ecdb682be7c211 32296
apt-file_2.4.2_all.deb
Files:
79552c176cf981abd3846655abadeb41 1053 admin optional apt-file_2.4.2.dsc
0ffd3369fa3aee507b64b140a3dfc643 41503 admin optional apt-file_2.4.2.tar.gz
f5a1b577a4c1a9f8cdd70089006072a0 32296 admin optional apt-file_2.4.2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iD8DBQFNUH2dbxelr8HyTqQRAuFzAKDaimdj8KxAKAJt2RimHmpHX3iCiQCcD1xS
hk8y27ekdNwLOHcf8X/fSRE=
=cFmS
-----END PGP SIGNATURE-----
--- End Message ---