Package: apt-cacher Version: 1.6.4 Severity: normal
Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Zachary Palmer <zep_deb...@bahj.com> To: Debian Bug Tracking System <sub...@bugs.debian.org> Subject: Regression: apt-cacher no longer properly supports Debian installer files Message-ID: <20100709181656.28329.91443.report...@nestor.bahj.com> X-Mailer: reportbug 3.48 Date: Fri, 09 Jul 2010 14:16:56 -0400 Package: apt-cacher Version: 1.6.4 Severity: normal A patch was applied to apt-cacher 1.5.5 to allow the Debian Live project's scripts to properly pull Debian Installer files through apt-cacher. The patch appears to have involved adding a clause to the /usr/share/apt-cacher/apt-cacher script (at line 540 in my copy of version 1.6.4) which checks based on the following condition: ($filename =~ /^(?:vmlinuz|initrd\.gz)$/) However, attempting to create a clean Debian Live Lenny image including the Lenny installer results in the error: http://nestor:3142/debian//dists/lenny/main/installer-i386/current/images//netboot/debian-installer/i386/linux: 2010-07-09 14:10:37 ERROR 403: Sorry, not allowed to fetch that type of file: linux. E: Could not download file: http://nestor:3142/debian//dists/lenny/main/installer-i386/current/images//netboot/debian-installer/i386/linux It appears that the Debian Installer is now using the name "linux" rather than the name "vmlinuz". Adding this name to the above condition to get ($filename =~ /^(?:linux|vmlinuz|initrd\.gz)$/) and restarting apt-cacher seems to have worked for me. This problem also seems to exist in 1.6.11 in Sid at the moment. Can this fix be applied to mainstream? On a slightly more wishlist-y note, it would be nice for apt-cacher to use a configuration file for these filenames rather than a hardcoded regexp. That way, I could edit something in /etc to fix this if it comes up again as opposed to editing something in /usr/share. Thanks! -- System Information: Debian Release: 5.0.5 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apt-cacher depends on: ii bzip2 1.0.5-1 high-quality block-sorting file co ii ed 0.7-3 The classic unix line editor ii libdigest-sha1-perl 2.11-2+b1 NIST SHA-1 message digest algorith ii libwww-curl-perl 4.05-1 Perl bindings to libcurl ii libwww-perl 5.813-1 WWW client/server library for Perl ii perl 5.10.0-19lenny2 Larry Wall's Practical Extraction Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.34-1+b1 use Berkeley DB 4 databases from P Versions of packages apt-cacher suggests: pn libio-socket-inet6-perl <none> (no description available) -- no debconf information -- System Information: Debian Release: 5.0.5 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apt-cacher depends on: ii bzip2 1.0.5-1 high-quality block-sorting file co ii ed 0.7-3 The classic unix line editor ii libdigest-sha1-perl 2.11-2+b1 NIST SHA-1 message digest algorith ii libwww-curl-perl 4.05-1 Perl bindings to libcurl ii libwww-perl 5.813-1 WWW client/server library for Perl ii perl 5.10.0-19lenny2 Larry Wall's Practical Extraction Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.34-1+b1 use Berkeley DB 4 databases from P Versions of packages apt-cacher suggests: pn libio-socket-inet6-perl <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org