Package: apt-cacher Tags: patch Followup-For: Bug #385961 I made a simple patch that makes apt-cacher not cache Index files that triggered an 404. This way the clean-up cron job won't find thw empty and useless files and can continue cleaning.
grts Tim -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (900, 'testing'), (20, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.19 Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to nl_NL.utf8)
--- /usr/sbin/apt-cacher 2006-03-01 16:31:26.000000000 +0100 +++ apt-cacher 2006-12-13 12:55:59.000000000 +0100 @@ -1316,6 +1316,12 @@ if(defined($response->header("X-Died"))) { # was critical, most likely frozen now &kill_readers; } + + if($is_index_file and ($response->code == 404)) { + debug_message("This was supposed to be an index file, but the server doesn't have it. We'll remove it, else cleanup will complain."); + unlink $cached_file; + } + } debug_message("fetcher exiting");