File: golang-go.preinst

package info (click to toggle)
golang-defaults 2%3A1.7~5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 160 kB
  • ctags: 2
  • sloc: sh: 13; perl: 7; makefile: 5
file content (22 lines) | stat: -rwxr-xr-x 431 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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

#DEBHELPER#

exit 0