[Pkg-golang-commits] [golang-defaults] 15/27: remove /usr/lib/go/bin/go alternative on preinst upgrade.
Michael Hudson-Doyle
mwhudson-guest at moszumanska.debian.org
Wed Jul 19 21:48:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
mwhudson-guest pushed a commit to tag debian/2%1.6-1ubuntu3
in repository golang-defaults.
commit 767d443e6bbe4ed7a3594b411e8d47117650547c
Author: Michael Hudson-Doyle <michael.hudson at canonical.com>
Date: Thu Mar 10 22:48:16 2016 +1300
remove /usr/lib/go/bin/go alternative on preinst upgrade.
---
debian/golang-go.preinst | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/debian/golang-go.preinst b/debian/golang-go.preinst
new file mode 100755
index 0000000..a804121
--- /dev/null
+++ b/debian/golang-go.preinst
@@ -0,0 +1,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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang-defaults.git
More information about the pkg-golang-commits
mailing list