Package: apt-proxy
Version: 1.9.37
Severity: important
Tags: patch

apt-proxy should recognise .tar.bz2 and .diff.bz2 as valid, since these
are now used in the Debian archive.

The following change works for me:

--- a/apt_proxy/cache.py
+++ b/apt_proxy/cache.py
@@ -522,9 +522,10 @@
 # return an error.
 filetypes = (
     FileType(r"\.u?deb$", "application/dpkg", 0),
-    FileType(r"\.tar\.gz$", "application/x-gtar", 0),
+    FileType(r"\.tar\.(?:gz|bz2)$", "application/x-gtar", 0),
     FileType(r"\.dsc$","text/plain", 0),
     FileType(r"\.diff\.gz$", "x-gzip", 0),
+    FileType(r"\.diff\.bz2$", "x-bzip2", 0),
     FileType(r"\.bin$", "application/octet-stream", 0),
     FileType(r"\.tgz$", "application/x-gtar", 0),
     FileType(r"\.txt$", "text/plain", 1),
--- END ---

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable'), (100, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-proxy depends on:
ii  adduser                     3.110        add and remove users and groups
ii  bzip2                       1.0.5-1      high-quality block-sorting file co
ii  logrotate                   3.7.1-5      Log rotation utility
ii  python                      2.5.2-3      An interactive high-level object-o
ii  python-apt                  0.7.7.1+nmu1 Python interface to libapt-pkg
ii  python-central              0.6.8        register and build utility for Pyt
ii  python-twisted-web          8.1.0-1      An HTTP protocol implementation to

apt-proxy recommends no packages.

Versions of packages apt-proxy suggests:
ii  rsync                         3.0.3-2    fast remote file copy program (lik

-- debconf information:
  apt-proxy/upgrading-v2:
  apt-proxy/upgrading-v2-result:



-- 
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