This file is indexed.

preinst is in golang-go 2:1.7~5.

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

set -e

case "$1" in
	upgrade)
		# When golang-go was not a dependency package, it used alternatives to
		# manage /usr/bin/go, and unfortunately did not remove the alternative on
		# prerm upgrade (just uninstall|deconfigure). So remove it here.
		update-alternatives --remove go /usr/lib/go/bin/go
		;;
	install)
		;;
	*)
		echo "preinst called with unknown argument \`$1'" >&2
		exit 0
		;;
esac

# Automatically added by dh_installdeb
dpkg-maintscript-helper dir_to_symlink /usr/lib/go go-1.7 2:1.6.1+2~ -- "$@"
# End automatically added section


exit 0