preinst is in python-logilab-common 0.61.0-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 | #!/bin/sh
# TODO: remove this file after releasing Squeeze
set -e
if [ "$1" = upgrade ]
then
if dpkg --compare-versions "$2" lt 0.45.0-1 ; then
# be really sure also removing left-over files and dirs
for pyversion in 2.4 2.5; do
if [ -d /usr/lib/python$pyversion/site-packages/logilab/ ]; then
rm -rf /usr/lib/python$pyversion/site-packages/logilab/
fi
done
fi
fi
|