Package: apt-proxy
Version: 1.9.33ubuntu1
Severity: important
Tags: patch experimental
When apt proxy receives a full URI such as http://host:port/path/file rather
than just path/file it gets confused. This change allows it to strip the
protocol, host and port parts from the URI in order to find a suitable back=
end.
In apt-proxy/apt-proxy.py near line 1498
The function begins with:
path =3D re.sub(r"//+", "/", old_path)
Replace this line with the following two lines:
path =3D re.sub(r"^http://[^/]+", "", old_path)
path =3D re.sub(r"//+", "/", path)
Appologies for the lack of a diff -u patch. I wasn't aware of where to
download a relevent source tree.
Thanks.
-- System Information:
Debian Release: testing/unstable
APT prefers dapper-security
APT policy: (500, 'dapper-security'), (500, 'dapper')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-27-686
Locale: LANG=3Den_AU.UTF-8, LC_CTYPE=3Den_AU.UTF-8 (charmap=3DUTF-8)
Versions of packages apt-proxy depends on:
ii adduser 3.80ubuntu2 Add and remove users and groups
ii bzip2 1.0.3-0ubuntu2 high-quality block-sorting fil=
e co
ii debconf [debconf-2.0] 1.4.72ubuntu9 Debian configuration managemen=
t sy
ii logrotate 3.7.1-2 Log rotation utility
ii python 2.4.2-0ubuntu3 An interactive high-level obje=
ct-o
ii python-apt 0.6.16.2ubuntu8 Python interface to libapt-pkg
ii python-bsddb3 3.3.0-6ubuntu1 Python interface to libdb3
ii python-twisted 2.2.0-2ubuntu1 Event-based framework for inte=
rnet
ii python-twisted-web 0.5.0-3ubuntu2 An HTTP protocol implementatio=
n to
apt-proxy recommends no packages.
-- debconf information:
apt-proxy/upgrading-v2:
apt-proxy/upgrading-v2-result:
--=20
Paul Bone
Software Developer
http://www.digitalerection.com
|