[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NEVER remove log files without asking



Steve Greenland <steveg@moregruel.net> writes:
> In general, yes. But I don't think it's unreasonable for the apache
> maintainer to assume that /var/log/apache is full of apache log
> files, put there by apache. How is the postrm supposed to
> distinguish log files it's supposed to remove, because Policy 10.8
> requires it, vs. log files that the user wants to keep? Just those
> named 'access.log'? Or is it 'access.log.*'. Or 'access.log.*' in
> subdirs?
>
> Is it wrong for package foobar to 'rm -rf /var/cache/foobar' when it
> is purged?

Perhaps life would be improved by having a way to easily discover what
--purge would remove without actually running it (or reading the
relevant maintainer script).  You already get this for conffiles,
which are a subset of the answer; it could be extended to other things
removed by --purge.

(Pretty obviously packages that remove anything with --purge would
have to be changed to support some new interface, so this is a
long-term sort of suggestion.)

-- 
http://www.greenend.org.uk/rjk/



Reply to: