This file is indexed.

preinst is in dh-python 2.20151103ubuntu1.

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
#!/bin/sh
set -e

# ugly hack, but dpkg-divert's manpage isn't clear enough to me
if [ -f /usr/bin/dh_python2.real ]; then
	rm -f /usr/bin/dh_python2
	dpkg-divert --remove --rename --divert /usr/bin/dh_python2.real /usr/bin/dh_python2
fi
if [ -f /usr/share/man/man1/dh_python2.real.1.gz ]; then
	rm -f /usr/share/man/man1/dh_python2.1.gz
	dpkg-divert --remove --rename --divert /usr/share/man/man1/dh_python2.real.1.gz /usr/share/man/man1/dh_python2.1.gz
fi