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

Re: question about conffiles and prerm/postrm



On Sat, Feb 01, 2003 at 01:39:43PM -0500, sean finney wrote:

> i'm working on a package that has a directory in /etc/sugarplum
> and in this directory two conffiles and one other (empty) directory.
> when i purge the package, i get:
> 
> balthasar[/home/seanius/sugarplum]13:17:02# dpkg --purge sugarplum
> (Reading database ... 69541 files and directories currently installed.)
> Removing sugarplum ...
> dpkg - warning: while removing sugarplum, directory `/etc/sugarplum' not empty so not removed.
> Purging configuration files for sugarplum ...

See bug #59343 and those merged with it.

> and if i don't do anything about it, afterwards the /etc/sugarplum
> directory remains.  what's the best way to not leave cruft behind like
> that?  right now i have a little snippet of code that checks for an empty
> sugarplum directory in a postrm purge, which works, but i'm not sure it's
> how it ought to be done.

This is the best that you can do right now.

-- 
 - mdz



Reply to: