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 28 29 30 31 32 33
|
#! /bin/sh -e
#
# postinst script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#
VERSION=2.3
PACKAGE=python$VERSION-unit
DIRLIST="/usr/lib/python$VERSION/site-packages"
case "$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
for i in $DIRLIST ; do
python$VERSION -O /usr/lib/python$VERSION/compileall.py -q $i
python$VERSION /usr/lib/python$VERSION/compileall.py -q $i
done
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
if [ "$1" = "configure" ]; then
# update-alternatives on things that collide
update-alternatives --install /usr/bin/unittestgui unittestgui /usr/bin/unittestgui.python$VERSION 70 --slave /usr/share/man/man1/unittestgui.1.gz unittestgui.1.gz /usr/share/man/man1/unittestgui.python$VERSION.1.gz
fi
#DEBHELPER#
exit 0
|