preinst is in python-sqlobject 2.1.2-1.
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 | #!/bin/sh
set -e
if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.12.2-1; then
pycentral pkgremove python-sqlobject
for pyversion in 2.4 2.5; do
if [ -d /usr/lib/python$pyversion/site-packages/SQLObject-* ]; then
rm -rf /usr/lib/python$pyversion/site-packages/sqlobject \
/usr/lib/python$pyversion/site-packages/SQLObject-*
fi
done
fi
exit 0
|