[2018-11-27 17:33] Ivan Shmakov <i...@siamics.net>
> I’m not going to claim I’m that familiar with Debian packaging
> practices, but wouldn’t .postinst alone be enough?  .postrm
> isn’t going to do anything if .postinst has already removed the
> file, and there seem to be nothing to warrant a .preinst, either.

Manual page of dpkg-maintscript-helper suggests so:

        Many of those tasks require coordinated actions from several maintainer
        scripts (preinst, postinst, prerm, postrm). To avoid mistakes the  same
        call  simply  needs  to  be  put  in  all  scripts and the program will
        automatically adapt its behaviour based  on  the  environment  variable
        DPKG_MAINTSCRIPT_NAME  and on the maintainer scripts arguments that you
        have to forward after a double hyphen.

Reply via email to