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