This file is indexed.

preinst is in python-formencode 1.2.4-2ubuntu2.

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
#!/bin/sh
# TODO: remove this file after releasing Squeeze
set -e
if [ "$1" = upgrade ]
then
	if dpkg --compare-versions "$2" lt 1.1-1; then
		pycentral pkgremove python-formencode
	elif dpkg --compare-versions "$2" lt 1.2.2-1; then
		pycentral pkgremove python-formencode
		# pycentral will not remove files that were moved in 1.1-1
		rm -rf /usr/lib/python2.4/site-packages/formencode/
		rm -rf /usr/lib/python2.5/site-packages/formencode/
	fi
fi