Package: apt-cacher
Version: 1.5.3
Severity: normal
Tags: patch

apt-listbugs read the apt.conf for the proxy and use the proxy for
fetching the bugs.
So the following lines need to be add to support the file type index.db-.*.gz

--- /tmp/apt-cacher     2006-04-26 16:18:13.694362752 +0200
+++ /usr/sbin/apt-cacher        2006-04-26 16:06:27.000000000 +0200
@@ -655,6 +655,12 @@
             $new_filename =~ s/\//_/g;
             debug_message("new long filename: $new_filename");
         }
+       elsif ($filename =~ /index\.db-.*\.gz$/) {
+           # the apt-listbug index
+           # I m not sure,if we want to cache it,...
+           $new_filename = $filename;
+           debug_message("new index.db-... from apt-listbug with just basename:
$new_filename");
+       }
         elsif ($filename =~ /$index_files_regexp/) {
             $is_index_file=1;
             # It's a Packages.gz or related file: make a long
filename so we can cache
these files without

The proposal patch is definitively not a final patch as I do not know
the whole code around,
but solved my problem.

Btw, when do you plan to release apt-cacher II ?

cheers,
david



-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Reply via email to