#1019500 apt-cacher-ng should depend on xz-utils

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
Tim Woodall
Date:
2025-05-06 08:36:01 UTC
Severity:
normal
#1019500#5
Date:
2022-09-10 15:22:12 UTC
From:
To:
Dear Maintainer,

The /etc/cron.daily/apt-cacher-ng installed by apt-cacher-ng uses
/usr/bin/xz from xz-utils but apt-cacher-ng does not depend on that
package.

Please consider adding this dependency otherwise you can get emails from
cron like the following:

/etc/cron.daily/apt-cacher-ng:
xargs: xz: No such file or directory

Thanks.

#1019500#10
Date:
2025-05-06 08:33:54 UTC
From:
To:
Dear Maintainer,

I get the daily cron error mail, too.

/etc/cron.daily/apt-cacher-ng seems to do daily housekeeping.
xz is only used to compress logfiles.

This gets me wondering. Would it be better to outsource this job to
logrotate? Especially when there is already a
/etc/logrotate.d/apt-cacher-ng config file?

The following config snipplet is maybe sufficient?
----------------------------------------8<-----------------
/var/log/apt-cacher-ng/maint_*.log.html {
        daily
        missingok
        rotate 10
        compress
        delaycompress
        notifempty
}
-------------------------------->8-------------------------

Thanks for your support.
Thomas