preinst is in python-apt-doc 1.1.0~beta1build1.
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 | #!/bin/sh
set -e
# Remove files that remained
if [ "$1" = "upgrade" ]; then
if test -d /usr/share/doc/python-apt/html; then
rm -r /usr/share/doc/python-apt/html
fi
if test -d /usr/share/doc/python-apt/examples; then
rm -r /usr/share/doc/python-apt/examples
fi
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/python-apt-doc python-apt 1.0.0~beta2~ -- "$@"
# End automatically added section
|