preinst is in pymsnt 0.11.3-5.
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 | #! /bin/sh
set -e
if test "$1" = upgrade; then
if dpkg --compare-versions "$2" le 0.11.1-4; then
rm -f /var/run/jabber/pymsnt.pid
fi
fi
# Automatically added by dh_pycentral
case "$1" in
install|upgrade)
mkdir -p /var/lib/pycentral
echo '# the presence of this file allows calling pkgremove on upgrade' \
> /var/lib/pycentral/pymsnt.pkgremove
esac
# End automatically added section
exit 0
|