1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/packages/debian-stable/python2.3-libxml2dom/debian/prerm Sun Nov 12 22:53:26 2006 +0000
1.3 @@ -0,0 +1,26 @@
1.4 +#! /bin/sh
1.5 +# prerm script for libxml2dom
1.6 +
1.7 +set -e
1.8 +
1.9 +PACKAGE=python2.3-libxml2dom
1.10 +VERSION=2.3
1.11 +LIB="/usr/lib/python$VERSION"
1.12 +DIRLIST="$LIB/site-packages/libxml2dom"
1.13 +
1.14 +case "$1" in
1.15 + remove|upgrade|failed-upgrade)
1.16 + for i in $DIRLIST ; do
1.17 + find $i -name '*.py[co]' -exec rm \{\} \;
1.18 + done
1.19 + ;;
1.20 +
1.21 + *)
1.22 + echo "prerm called with unknown argument \`$1'" >&2
1.23 + exit 1
1.24 + ;;
1.25 +esac
1.26 +
1.27 +
1.28 +
1.29 +exit 0