preinst is in lintian4python 0.28.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
# /usr/share/lintian4python/lib used to be a symlink, but it's now a regular
# directory. As per Policy ยง6.6, dpkg can't handle such a switch itself.
lib=/usr/share/lintian4python/lib
if [ "$1" = 'upgrade' ] && [ -L "$lib" ] && dpkg --compare-versions "$2" lt 0.12
then
rm -f $lib
fi
unset lib
|