#720167 apt-cacher-ng does not truncate/remove files when "Treat incomplete files as damaged." is selected

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
Bolesław Tokarski
Date:
2013-08-19 10:57:11 UTC
Severity:
normal
#720167#5
Date:
2013-08-19 10:40:26 UTC
From:
To:
I recently found I have a large amount of packages that are incorrect.
It seemed that the package names were different - like the sssd package contained the sssd-python package or so.

This resulted in .deb.head files being consistent with .deb files, however totally wrong compared to the Packages stuff.

So, I decided to change the cron.daily script to scan, check the sum and repair. This required me to generate a new ACNGREQ variable, which I did using
the web interface and copied the string. During that I found that although selecting both:
"/then validate file contents through checksum (SLOW), also detecting corrupt files,/"
"/then truncate damaged files immediately./"
removes the oversized, incorrect files, but if the file is smaller than in Packages, it's not removed. So I selected the third option:
"/Treat incomplete files as damaged./"
However, adding this one causes apt-cacher-ng not to remove (or truncate) the damaged files.

I am running this on a RedHat 6.4 machine with an RPM generated by myself basing on altlinux's guys.
The cron.daily script comes from the Debian package, though, and there is no modification to apt-cacher-ng itself.

Best regards,
Bolesław Tokarski