~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to debian/PVER.prerm.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-mr2oo53y4j8vpldi
Tags: 3.1~a1+20090322-1
* Python 3.1 alpha1 release.
* Update to the trunk, 20090322.
* Update installation schemes: LP: #338395.
  - When the --prefix option is used for setup.py install, Use the
    `unix_prefix' scheme.
  - Use the `deb_system' scheme if --install-layout=deb is specified.
  - Use the the `unix_local' scheme if neither --install-layout=deb
    nor --prefix is specified.
* Use the information in /etc/lsb-release for platform.dist(). LP: #196526.
* pydoc: Fix detection of local documentation files.
* Build a shared library configured --with-pydebug. LP: #322580.
* Fix some lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
#
 
3
# prerm script for the Debian @PVER@-base package.
 
4
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
 
5
#
 
6
 
 
7
case "$1" in
 
8
    remove|upgrade)
 
9
        dpkg -L @PVER@ \
 
10
            | awk '/\.py$/ {print $0"c\n" $0"o"}' \
 
11
            | xargs rm -f >&2
 
12
        ;;
 
13
    deconfigure)
 
14
        ;;
 
15
    failed-upgrade)
 
16
        ;;
 
17
    *)
 
18
        echo "prerm called with unknown argument \`$1'" >&2
 
19
        exit 1
 
20
    ;;
 
21
esac
 
22
 
 
23
rmdir /usr/local/lib/python@VER@/site-packages 2>/dev/null && \
 
24
        rmdir /usr/local/lib/python@VER@ 2>/dev/null || \
 
25
        true
 
26
 
 
27
#DEBHELPER#