prerm 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 | #!/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.
if [ "$1" = 'upgrade' ] && dpkg --compare-versions "$2" lt 0.12
then
echo 'Downgrading lintian4python to << 0.12 is not supported.' >&2
exit 1
fi
|