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 ==


--
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/493ef0271300df90a8930c05eca4c...@raboud.com

Reply via email to