Package: apt-cacher
Version: 0.8.5
Followup-For: Bug #267680

I don't think either of the first two suggestions in the original report
will work, as it's highly likely you'll want to download a
Contents-<arch>.gz from more than one repository. Thus they must be
given the same treatment as Packages.gz et al.

I also think that it should be upgraded from wishlist to at least minor
if not normal priority, since it completely prevents another package
(apt-file) from working once installed. (If it's already installed, it
continues to work, but won't update.) I haven't, however, changed the
severity myself, as I am prepared to debate it.

Patch follows:

--- /usr/share/apt-cacher/apt-cacher.pl.orig    2005-03-19 23:50:33.000000000 
+0000
+++ /usr/share/apt-cacher/apt-cacher.pl 2005-03-20 00:00:51.000000000 +0000
@@ -369,7 +369,7 @@
        # Place the file in the cache with just its basename
        $new_filename = $filename;
        debug_message("new filename with just basename: $new_filename");
-} elsif ($filename =~ /(Packages.gz|Release|Release.gpg|Sources.gz)$/) {
+} elsif ($filename =~ 
/(Packages.gz|Release|Release.gpg|Sources.gz|Contents-.+\.gz)$/) {
        # It's a Packages.gz or related file: make a long filename so we can 
cache these files without
        # the names colliding
        $new_filename = "$host$uri";
@@ -392,7 +392,7 @@
 #print STDERR "--- Looking for $cached_file\n";
 debug_message("looking for $cached_file");

-if ($filename =~ /(Packages.gz|Release|Release.gpg|Sources.gz)$/) {
+if ($filename =~ 
/(Packages.gz|Release|Release.gpg|Sources.gz|Contents-.+\.gz)$/) {
        debug_message("filename complies: $filename");
        # Unlink the file if it is older than our configured time
        if (-f _) {

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages apt-cacher depends on:
ii  apache                        1.3.33-4   versatile, high performance HTTP s
ii  bzip2                         1.0.2-5    high-quality block-sorting file co
ii  perl                          5.8.4-6    Larry Wall's Practical Extraction 
ii  wget                          1.9.1-8    retrieves files from the web


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to