Bug#341081: vim-gnome: Leaves stale diversion on upgrade from 6.3

Stefano Zacchiroli zack at debian.org
Tue Nov 29 20:10:01 UTC 2005


tags 341081 + moreinfo confirmed
thanks

On Mon, Nov 28, 2005 at 05:09:29AM -0500, Will Dyson wrote:
> On upgrade to the new 6.4 vim packages which use alternatives to manage
> /usr/bin/vim, a stale 'diversion of /usr/bin/vim to /usr/bin/vim.org by
> vim-gnome' was left on my system.

I think I just put the right code in the wrong place. Could you please
check:

1) if /var/lib/dpkg/info/vim-gnome.postrm contains something like:

  remove_old_diversion() {
    if [ -f /usr/bin/vim.org ]; then
      dpkg-divert --package $pkg --remove --rename \
                --divert /usr/bin/vim.org /usr/bin/vim
    fi
  }

2) if executing:

    if [ -f /usr/bin/vim.org ]; then
      dpkg-divert --package $pkg --remove --rename \
                --divert /usr/bin/vim.org /usr/bin/vim
    fi

  properly remove the diversion?

If it fixes the problem I just need to move the "remove_old_diversion"
stuff in the postinst script instead of the postrm one. Don't know why I
put it there ... mumble mumble.

Thanks for your report.
Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20051129/95a44ecc/attachment.pgp


More information about the pkg-vim-maintainers mailing list