hey mentors 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 ... 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. thanks, sean
pgpIEJUlJMb5v.pgp
Description: PGP signature