[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: jabber-querybot



Didier,

On Wed, Nov 23, 2011 at 04:22:06PM +0100, Didier Raboud wrote:
> 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 ==

Finaly I implemented your proposal 3. Learned a lot today! Thanks to all.

dget -x http://mentors.debian.net/debian/pool/main/j/jabber-querybot/jabber-querybot_0.0.5.1-1.dsc

--
Marco

Attachment: signature.asc
Description: GnuPG Signature


Reply to: