Package: apt-proxy
Version: 1.9.36.3+nmu1

apt-mirror refurses to download files like
Translation-pt_BR.bz2

The whole error Message is:

  2009-06-07 12:27:56-0300 [Channel,2,127.0.0.1] '[HttpRequestClient]
  abort - unknown extension for file
  dists/lenny/updates/main/i18n/Translation-pt_BR.bz2'

Look like it does not like upper case letters in the filename.
The following patches seams to solve the problem:

###### start of patch ########
--- /usr/share/pyshared/apt_proxy/cache.py.orig 2009-06-07
12:41:23.000000000 -0300
+++ /usr/share/pyshared/apt_proxy/cache.py      2009-06-07
12:34:03.000000000 -0300
@@ -503,7 +503,7 @@

     FileType(r"(?:^|/)Packages.gz$", "text/plain", 1,
decompressor=clients.GzUncompressClient),
     FileType(r"(?:^|/)Packages.bz2$", "text/plain", 1,
decompressor=clients.Bz2UncompressClient),
-
FileType(r"(?:^|/)(?:Packages|Release(?:\.gpg)?|Sources|(?:Contents|Translation)-[a-z0-9_]+)"
+
FileType(r"(?:^|/)(?:Packages|Release(?:\.gpg)?|Sources|(?:Contents|Translation)-[A-Za-z0-9_]+)"
                         r"(?:\.(?:gz|bz2))?$",
              "text/plain", 1),

FileType(r"(?:^|/)(?:Packages|Sources|Contents-[a-z0-9]+)\.diff/Index$",
###### end of patch ########


Regard

Hans Krüger



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to