preinst is in python-rpy 1.0.3-27.
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 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh
#
# prerinst script for the Debian GNU/Linux python-rpy package
#
# Copyright 2006 by Dirk Eddelbuettel <edd@debian.org>
set -e
case "$1" in
install|upgrade)
for f in rpy rpy_io rpy_options rpy_tools rpy_versions rpy_wintools; do
for e in pyc pyo; do
for v in 2.3 2.4; do
if [ -f /usr/lib/python$v/site-packages/$f.$e ]; then
rm -fv /usr/lib/python$v/site-packages/$f.$e
fi
done
done
done
;;
abort-upgrade|disappear)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
;;
esac
exit 0
|