~ted/ubuntu/karmic/vim/add-breaks

« back to all changes in this revision

Viewing changes to debian/vim-runtime.preinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-01-13 18:39:18 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090113183918-kgq1jzdwsbbex4pq
Tags: 2:7.2.079-1ubuntu1
* Resynchronise with Debian (diversions fix closes LP: #296324). Remaining
  changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  fi
32
32
}
33
33
 
34
 
rm_diversion() {
35
 
  dpkg-divert --package vim-runtime --rename --remove "$1"
36
 
}
37
 
 
38
34
add_diversion() {
39
35
  dpkg-divert --package vim-runtime --add --rename \
40
36
    --divert "$1.vim-tiny" "$1"
41
37
}
42
38
 
43
 
# Used to remove the previous diversion when upgrading from one major release
44
 
# to the next
45
 
remove_previous_diversions() {
46
 
  for v in vim71 vim72a vim72b vim72c; do
47
 
    oldpath="$(echo $1 | sed s/@VIMCUR@/$v/)"
48
 
    if dpkg-divert --list 2>/dev/null | grep -q "$oldpath"; then
49
 
      rm_diversion $oldpath
50
 
    fi
51
 
  done
52
 
}
53
 
 
54
39
# Also run during upgrade to fix the botched handling of diversions in postrm
55
40
# in the 1:71.314-{1,2} uploads.  This would need to be run during an upgrade
56
41
# to a new major upstream version as well to handle removing the diversions in
61
46
  fi
62
47
  add_diversion $basedir/help.txt
63
48
  add_diversion $basedir/tags
64
 
  remove_previous_diversions $basedir/help.txt
65
 
  remove_previous_diversions $basedir/tags
66
49
fi
67
50
 
68
51
#DEBHELPER#