~ubuntu-branches/ubuntu/oneiric/python-docutils/oneiric

« back to all changes in this revision

Viewing changes to debian/python-docutils.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk
  • Date: 2010-06-23 15:21:09 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100623152109-w1xdkijwbiuvjk4l
Tags: 0.6-5
Correct the preinst script to remove python-central leftovers even when
upgrading from a version that uses python-support (closes: #586683).
Thanks to Julian Andres Klode for the bug report.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
set -e
3
3
 
4
4
# TODO: remove this snippet after releasing Squeeze
5
 
if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.5-3~
 
5
if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.6-5~
6
6
then
7
7
        pycentral pkgremove python-docutils || true
8
 
        rm -Rf /usr/lib/python2.[45]/docutils/
 
8
        rm -Rf /usr/lib/python2.*/*-packages/docutils/
9
9
fi
10
10
 
11
11
#DEBHELPER#