Bug#624363: apt: should remove its log files on purge
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---
Reply to: