On Mon, 22 Oct 2012 00:16:19 +0200, Andreas Beckmann wrote: > With the prerm script gone this issue is fixed for squeeze->sid upgrades > (and squeeze->wheezy upgrades once 1.2.8-par-3 migrates to wheezy), but > the problem (missing conffile) will still exist if the user had any > version from 1.2.8-par-2, ..., 1.2.8-par-2.3 installed. > > I don't see an easy solution for this ... as > old-prerm upgrade new-version > is the very first step of the upgrade, there is no hacking around this > by deleting a buggy maintainer script during > new-preinst upgrade old-version
Right, when upgrading from one of those versions the file gets removed. (And not even reinstalling helps, and dpkg-query knows about the conffile ...) > Maybe this could work: > ship another copy of the file in /usr/share and in the postinst do > > if dpkg --compare-versions $upgrade_from ge 1.2.8-par-2~ && > dpkg --compare-versions $upgrade_from lt 1.2.8-par-4~ > then > target=/etc/NetworkManager/dispatcher.d/002_NetMan_pdnsd > source=/usr/share/.../002_NetMan_pdnsd > if [ ! -e $target ]; then > echo restoring $target > cp $source $target > fi > fi > > but it's only upgrades from pdnsd/testing that are affected Should work; not sure if it's worth the effort ... Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `-
signature.asc
Description: Digital signature