preinst is in fp-compiler-2.4.4 2.4.4-3.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 | #! /bin/sh
set -e
# Remove fpc from pc alternative if buggy 2.0.0-{1,2} versions are upgraded
if [ "$1" = "upgrade" ] && [ "$2" = "2.0.0-1" ] || [ "$2" = "2.0.0-2" ]; then
update-alternatives --remove pc /usr/bin/fpc
fi
# Debhelper code
|