Package: apt-cacher
Version: 1.7.1
Severity: normal
Tags: patch
Hi,
please apply the attached patch to also allow .tar.xz files in
package_files_regexp by default. Otherwise packages like clive
2.2.27-1 (in unstable) cannot be downloaded with apt-get source.
Regards,
Ansgar
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-cacher depends on:
ii debconf [debconf-2.0] 1.5.40
ii ed 1.5-3
ii libfilesys-df-perl 0.92-4
ii libfreezethaw-perl 0.5001-1
ii libio-interface-perl 1.06-1
ii libnetaddr-ip-perl 4.049+dfsg-1
ii libwww-curl-perl 4.15-1+b1
ii libwww-perl6.03-1
ii perl 5.12.4-6
ii update-inetd 4.40
Versions of packages apt-cacher recommends:
pn libberkeleydb-perl none
Versions of packages apt-cacher suggests:
pn libio-socket-inet6-perl none
-- Configuration Files:
/etc/apt-cacher/apt-cacher.conf changed [not included]
-- debconf information excluded
From 14b5ce752dffed9867ef248677cd08a155698aac Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt ans...@debian.org
Date: Fri, 11 Nov 2011 21:53:05 +0100
Subject: [PATCH] Allow to download .tar.xz.
---
apt-cacher-lib.pl |2 +-
apt-cacher.conf |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/apt-cacher-lib.pl b/apt-cacher-lib.pl
index 5a8c0cf..d8f783e 100755
--- a/apt-cacher-lib.pl
+++ b/apt-cacher-lib.pl
@@ -96,7 +96,7 @@ sub read_config {
)
) . ')$',
package_files_regexp = '(?:' . join('|',
- qw(^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_[-a-z0-9]+\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz|\.bz2)|\.diff\.gz)
+ qw(^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_[-a-z0-9]+\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz|\.bz2|\.xz)|\.diff\.gz)
\.rpm
index\.db-.+\.gz
\.jigdo
diff --git a/apt-cacher.conf b/apt-cacher.conf
index 83dd99f..99a911b 100755
--- a/apt-cacher.conf
+++ b/apt-cacher.conf
@@ -235,7 +235,7 @@ user = www-data
# Permitted package files - this is a perl regular expression which matches all
# package-type files (files that are uniquely identified by their filename).
#
-#package_files_regexp = (?:^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_[-a-z0-9]+\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz|\.bz2)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo|\.template)$
+#package_files_regexp = (?:^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_[-a-z0-9]+\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz|\.bz2|\.xz)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo|\.template)$
# Permitted Index files - this is the perl regular expression which matches all
# index-type files (files that are uniquely identified by their full path and
--
1.7.7.1