preinst is in python-gtk2-doc 2.24.0-3ubuntu3.
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 | #!/bin/sh
set -e
if dpkg --compare-versions "$2" lt-nl "2.13.0-1"; then
rm -rf /usr/share/doc/python-gtk2-doc/examples/demos
fi
|