~ubuntu-branches/ubuntu/edgy/vim/edgy-backports

« back to all changes in this revision

Viewing changes to debian/kvim.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Waugh
  • Date: 2004-10-08 10:04:36 UTC
  • Revision ID: james.westby@ubuntu.com-20041008100436-xp63tppe72zhxjvn
Tags: 1:6.3-025+1ubuntu2
* debian/vim-gnome.desktop:
  - Disable menu item.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
pkg=kvim
 
4
 
 
5
remove_diversion() {
 
6
  dpkg-divert --package $pkg --remove --rename \
 
7
              --divert /usr/bin/vim.org /usr/bin/vim
 
8
}
 
9
 
 
10
if [ "$1" = "failed-upgrade" ] && $(dpkg --compare-versions $2 lt 6.0) ; then
 
11
  remove_diversion
 
12
elif [ "$1" = "remove" ] ; then
 
13
  remove_diversion
 
14
fi
 
15
 
 
16
#DEBHELPER#
 
17
 
 
18
exit 0