debian/python2.3-oobrother.prerm
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Mon, 23 Jun 2008 13:42:22 +0200
changeset 6 6aad8b499e86
parent 0 7710b138d4eb
permissions -rw-r--r--
fix reST markup

#! /bin/sh -e
#
# sample prerm script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

dpkg --listfiles python2.3-oobrother |
	awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
	xargs rm -f >&2


## Alternatives

if [ $1 != "upgrade" ]; then
    # Remove alternatives
    for i in oobrother ; do
        update-alternatives --remove $i /usr/bin/$i.python2.3
    done
fi


#DEBHELPER#