Hi, On Mon, 16 May 2011, Ondřej Surý wrote: > (small) ping with question... > > Are you going to consider implementing purge_dir to > dpkg-maintscript-helper or should I do it directly in > php5-<sapi>.postinst scripts? (Both options are OK for me.)
I'm definitely interested into providing a standardized solution with dpkg-maintscript-helper until dpkg can support this natively. I'm just not sure what the correct solution is. Instead of purge_dir maybe the right answer is "manage-manual-conffile" and/or "manage-manual-file". And it would drop the file on removal/purge and try to remove the parent directories if they are no longer owned. For now, the "preinst/prerm/postinst" would be a no-op but the postrm would do the removal. Later when we can tell dpkg that the package installed some manual files, the registration would happen in postinst and in the other scripts the command would become a no-op since dpkg itself would do the removal. Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org