And now finally taking care of the "install" step too: this is needed
if someones installs jabber-querybot 0.0.4-1, uninstalls it (the symlink
doesn't get removed) and then installs 0.0.5.1-1.
On Wed, 23 Nov 2011 16:15:51 +0100, Didier Raboud wrote:
Or now with the -ef suggestion (way nicer!):
On Wed, 23 Nov 2011 16:04:20 +0100, Didier Raboud wrote:
What about that snippet? (which I wrote with inspiration from my
local /var/lib/dpkg/info/*.preinst e.g.)
== proposal 3 ==
case "$1" in
upgrade|install)
if dpkg --compare-versions "$2" lt 0.0.5.1-1; then
if [ /etc/jabber-querybot/Querymodule.pm -ef
/usr/share/doc/jabber-querybot/examples/Testbot.pm ];
then
rm /etc/jabber-querybot/Querymodule.pm
fi
fi
;;
esac
== /proposal 3 ==
--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1c5a009875074f9fa19aa52801f2e...@raboud.com