Bug#689537: pdnsd: deletes conffiles on package removal (policy 10.7.3): /etc/NetworkManager/dispatcher.d/002_NetMan_pdnsd
- To: 689537@bugs.debian.org
- Subject: Bug#689537: pdnsd: deletes conffiles on package removal (policy 10.7.3): /etc/NetworkManager/dispatcher.d/002_NetMan_pdnsd
- From: Andreas Beckmann <debian@abeckmann.de>
- Date: Mon, 22 Oct 2012 00:16:19 +0200
- Message-id: <[🔎] 50847433.9000208@abeckmann.de>
- Reply-to: Andreas Beckmann <debian@abeckmann.de>, 689537@bugs.debian.org
- In-reply-to: <handler.689537.D689537.135067966618176.notifdone@bugs.debian.org>
- References: <E1TPJTq-000762-3K@franck.debian.org> <20121003191245.4523.6698.reportbug@cake.ae.cs.uni-frankfurt.de> <handler.689537.D689537.135067966618176.notifdone@bugs.debian.org>
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
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
Andreas
Reply to: