Package: apt-cacher
Version: 1.5.3
Severity: normal
Tags: patch
The conversion script apt-cacher-format-transition.pl fails to convert
old cache files that contain HTTP headers that are terminated with CRLF.
(IIRC, CRLF is the correct line ending for HTTP headers).
The following one line patch fixes the end-of-headers detection:
--- apt-cacher-format-transition.pl~orig 2006-03-01 16:31:26.000000000
+0100
+++ apt-cacher-format-transition.pl 2006-03-03 18:57:00.000000000 +0100
@@ -19,7 +19,7 @@
if($data) { print daten $_; next; };
print header $_;
$size=$1 if /^Content-Length: (\d+)/;
- $data=1 if /^$/;
+ $data=1 if /^\r?$/;
}
close(daten);
close(header);
Andreas
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (900, 'testing'), (900, 'stable'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages apt-cacher depends on:
ii bzip2 1.0.2-11 high-quality block-sorting file co
ii libwww-perl 5.803-4 WWW client/server library for Perl
ii perl 5.8.7-9 Larry Wall's Practical Extraction
apt-cacher recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]