postinst is in python-support 1.0.15.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #! /bin/sh
set -e
if [ "$1" = "triggered" ]; then
update-python-modules --post-install
exit 0
fi
# Remove the old directory.
if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.90; then
rm -rf /var/lib/python-support
fi
if ! [ -e /var/lib/python-support ]; then
ln -sf /usr/lib/pymodules /var/lib/python-support
fi
update-python-modules --post-install python-support.private
|