Bug#624363: apt: should remove its log files on purge
On Mi, 2011-04-27 at 21:55 +0200, Sven Joachim wrote:
> Package: apt
> Version: 0.8.14.1
> Severity: minor
> Tags: patch
>
> Debian Policy recommends to remove log files on purge (§10.8):
>
> Log files should be removed when the package is purged (but not when
> it is only removed). This should be done by the `postrm' script when
> it is called with the argument `purge' (see Section 6.8, `Details of
> removal and/or configuration purging').
>
> Currently apt's postrm does not do this, here is an (untested ;-))
> patch:
>
> --8<---------------cut here---------------start------------->8---
> --- debian/postrm~ 2009-11-23 18:15:49.000000000 +0100
> +++ debian/postrm 2011-04-27 21:46:08.567182818 +0200
> @@ -18,5 +18,6 @@
> purge)
> rm -rf /var/cache/apt
> rm -rf /var/lib/apt
> + rm -rf /var/log/apt
> esac
>
> --8<---------------cut here---------------end--------------->8---
I don't think APT should do this. Upgrade logs are important, even if
you; for example, purge APT and install Cupt, you might need your
upgrade logs for bisecting.
With Cupt sharing the other APT directories, we should probably also
find a way to not delete them when Cupt is installed.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Reply to: