On 10.03.2013 13:53, Andrey Rahmatullin wrote: > On Sun, Mar 10, 2013 at 04:47:42PM +0400, Игорь Пашев wrote: >>>> What is the best way to ship such a diretory: >>>> in package (d/foo.dirs) or create in postinst script? >>> Why postinst? >> >> Because on removal there will be a message "cannot remove directory", >> if there are file in that directory. > Purge them too. Or leave it alone and ignore the dpkg warning, if you consider the data is user contributed. Think of the SQL database use case which preserves database data. Most of them are using debconf to ask the user whether the data shall be removed. That might, or might not overkill for your package. -- with kind regards, Arno Töll IRC: daemonkeeper on Freenode/OFTC GnuPG Key-ID: 0x9D80F36D
Attachment:
signature.asc
Description: OpenPGP digital signature