Re: RFS: jabber-querybot
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 2 ==
case "$1" in
upgrade)
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 2 ==
Reply to: