Since it's always going to be possible that we'll end up with
empty .gz files in the cache, apt-cacher-cleanup.pl should be
able to delete them without giving an error.

In this section of apt-cacher-cleanup.pl:

    if(-e $tmpfile && ! -s $tmpfile && $tmpfile=~/bz2$/) {
        # moo, junk, empty file, most likely leftovers from
previous versions
        # of apt-cacher-cleanup where the junk was "protected"
from beeing
        # deleted. Purge later by not having in %valid.
        # delete $valid{$file}; <- will be recreated RSN
either way
        print "Ignoring empty index file $file, apparently
undownloadable\n" if $verbose;
    }

I think we should alter the regular expression /bz2$/ to
/(bz2|gz)$/ so that empty .gz files are deleted instead of
being piped through zcat and generating an error.

Cheers,
MF.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to