This file is indexed.

preinst is in openjdk-6-jre-headless 6b41-1.13.13-0ubuntu0.12.04.1.

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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh

set -e

if [ -h /usr/share/doc/openjdk-6-jre-headless ]; then
	rm -f /usr/share/doc/openjdk-6-jre-headless
fi

multiarch=x86_64-linux-gnu
with_tzdata=yes
old_basedir=/usr/lib/jvm/java-6-openjdk
jre_tools='java keytool pack200 rmid rmiregistry unpack200 orbd servertool tnameserv'

case "$1" in
    upgrade)
	if [ -n "$multiarch" ] && [ -n "$2" ]; then
	    for i in $jre_tools; do
		if [ -n "$(update-alternatives --list $i 2>/dev/null | grep ^$old_basedir/)" ]; then
		    update-alternatives --remove $i $old_basedir/jre/bin/$i || true
		fi
	    done
	    if [ -n "$(update-alternatives --list jexec 2>/dev/null | grep ^$old_basedir/)" ]; then
		update-alternatives --remove jexec $old_basedir/jre/lib/jexec || true
	    fi
	fi

	# upgrading from a version that used the timezone files from tzdata-java
	if [ "$with_tzdata" != yes ] && [ -n "$multiarch" ]; then
		if [ -h /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/zi ]; then
			rm -f /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/zi
		fi
	fi
	;;
esac