Um 00:25 Uhr am 25.02.06 schrieb Sven Hartge:

> You added support for the Index-Files, but without the attached patch, 
> apt-cacher refuses to download the actual pdiffs, because their filenames
> don't match the patterns of the allowed files:
> 
> ,----
> | GET 
> /debian/dists/experimental/main/source/Sources.diff/2006-02-24-1313.10.gz 
> HTTP/1.1
> | Host: ds9:9999
> | Connection: keep-alive
> | User-Agent: Debian APT-HTTP/1.3
> |
> | HTTP/1.1 403 Sorry, not allowed to fetch that type of file: 
> 2006-02-24-1313.10.gz
> `----
> 
> After altering /usr/share/apt-cacher/apt-cacher as described in the patch,
> everything works as expected.

Which is, of course totally wrong. It _does_ allow for downloading of the 
pdiff, *but* since the filename is not unique (like Packages.bz2, etc.), 
the first patch from Libor Klepác is correct, the pdiff needs to be an 
index file to be treated right by apt-cacher.

Grüße,
S°

-- 
Sven Hartge -- professioneller Unix-Geek
Meine Gedanken im Netz: http://www.svenhartge.de/

Achtung, neue Mail-Adresse: [EMAIL PROTECTED]
--- apt-cacher  2006-02-23 23:23:47.000000000 +0100
+++ /usr/share/apt-cacher/apt-cacher    2006-02-25 00:27:37.000000000 +0100
@@ -61,6 +61,7 @@
 
 my @index_files = (
     'Index',
+    '[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{4}\.[0-9]{2}\.gz',
        'Packages.gz',
        'Packages.bz2',
        'Release',

Reply via email to