Re: debian/prerm is executed on *reconfigure*? (solved)
schönfeld / in-medias-res.com schrieb: Hi mentors, hi Dpkg developers, Okay, this problem is solved, thanks to Justin Pryzby and Michael Biebl. Thanks to you. To all the others reading this list: I can really really recommend the link at debian women wiki Michael posted. For packaging beginners like many on this list (and I) are this link is an awesome explanation of how maintainer scripts are called. Really great, absolutetly worth the recommendation. Best Regards Patrick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: debian/prerm is executed on *reconfigure*?
schönfeld / in-medias-res.com schrieb: Hi mentors, hi Dpkg developers, i could need some help with a bug that has been reported to be in one of my packages. According to #408823 my package removes a configuration file when dpkg-reconfigure is invoked. I'm really wondering about this, because that means that dpkg invokes my prerm script if it is called with dpkg-reconfigure. Is this behaviour of dpkg correct? If it is. What do i need to do, so that my prerm script does not cause harm, when called during this stage? Thanks in advance and best regards Patrick There is a very good documentation from Margarita [1] (besides the one Justin already mentioned) I'd suggest you read that carefully. Cheers, Michael [1] http://women.debian.org/wiki/English/MaintainerScripts signature.asc Description: OpenPGP digital signature
debian/prerm is executed on *reconfigure*?
Hi mentors, hi Dpkg developers, i could need some help with a bug that has been reported to be in one of my packages. According to #408823 my package removes a configuration file when dpkg-reconfigure is invoked. I'm really wondering about this, because that means that dpkg invokes my prerm script if it is called with dpkg-reconfigure. Is this behaviour of dpkg correct? If it is. What do i need to do, so that my prerm script does not cause harm, when called during this stage? Thanks in advance and best regards Patrick signature.asc Description: OpenPGP digital signature
Re: debian/prerm is executed on *reconfigure*?
On Fri, Mar 16, 2007 at 03:52:18PM +0100, schönfeld / in-medias-res.com wrote: Hi mentors, hi Dpkg developers, i could need some help with a bug that has been reported to be in one of my packages. According to #408823 my package removes a configuration file when dpkg-reconfigure is invoked. I'm really wondering about this, because that means that dpkg invokes my prerm script if it is called with dpkg-reconfigure. Is this behaviour of dpkg correct? This is the documented interface and intentional behavior. dpkg prerm is invoked before the removal of an *instance* of a package. It can be called with arguments including (but not limited to): remove, deconfigure, and upgrade. If it is. What do i need to do, so that my prerm script does not cause harm, when called during this stage? You probably don't want to remove config files during the upgrade, and you should really handle all the cases individually unless you know that they should be the same. Justin References [0] http://justinpryzby.com/debian/dpkg/ [1] new dpkg maintscripts file:///var/lib/dpkg/info/dpkg.p* [2] old debian-policy maintscripts [3] debian-polciy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]