reassign 391533 debhelper retitle 391533 prerm and postrm should be generated in reverse order thanks
Le samedi 07 octobre 2006 à 08:57 +0200, Baruch Even a écrit : > Package: python-support > Severity: normal > Version: 0.5.2 > > I'm trying to package autofw which acts as a daemon and am facing a bad > interaction between python-support and dh_installinit. Specifically, > when I use dh_pysupport before dh_installinit the install will work fine > but the uninstall will fail since pysupport removes the python files in > the prerm stage and then the dh_installinit tries to stop the service in > the prerm and postrm and it fails even in the prerm stage since the > source files were removed already. > > A possible solution for this would be to remove the python files in the > postrm. > > Another issue that is possible is that the {pre,post}{rm,inst} files are > generated in a FIFO order where it makes sense that the {pre,post}rm > files will be generated in reverse order so that python-support will > undo its work after anything else removed its part. Yes, this is a known problem, and I think the appropriate fix is indeed to change the order of script generation for prerm and postrm. However, it will certainly require a new compatibility level for debhelper, so this is not a change that can be done at once. Regards, -- .''`. Josselin Mouette /\./\ : :' : [EMAIL PROTECTED] `. `' [EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom