preinst is in python-freevo 1.9.2b2-4.2.
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 -e
# TODO: remove this file after releasing Squeeze
if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 1.9.0-4
then
pycentral pkgremove freevo || true #fix bug #606782
pycentral pkgremove python-freevo || true #fix bug #606782
for i in 2.4 2.5 2.6 ; do
if test -r /usr/lib/python$i/site-packages/freevo ; then
find /usr/lib/python$i/site-packages/freevo \
\( -type l -a -name '*.py' \) -o \( -type f -a -name '*.pyc' \) \
-o \( -type f -a -name '*.pyo' \) | xargs -r rm || true
fi
done
fi
|