This file is indexed.

preinst is in python-babel 1.3+dfsg.1-2ubuntu1.

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

set -e

if [ "${1}" = "upgrade" ] ; then
	# What's below is needed for upgrading from packages before localedata was in an independent python-babel-localedata package.
	for i in /usr/lib/python2.* ; do
		if [ ! -h $i/dist-packages/babel/localedata ] && [ -d $i/dist-packages/babel/localedata ] ; then
			find $i/dist-packages/babel/localedata -maxdepth 1 -type l -name '*.dat' -delete
			rmdir $i/dist-packages/babel/localedata
		fi
	done
fi



exit 0