[Pkg-golang-commits] [golang] 01/01: Add missing "prerm" for our new alternatives (thanks piuparts)
Tianon Gravi
admwiggin at gmail.com
Tue May 5 23:26:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
tianon-guest pushed a commit to branch debian-sid
in repository golang.
commit b4e5f9697a508f5dc9beb3a74cbaf9a9ebd50650
Author: Tianon Gravi <admwiggin at gmail.com>
Date: Tue May 5 17:26:29 2015 -0600
Add missing "prerm" for our new alternatives (thanks piuparts)
---
debian/changelog | 6 ++++++
debian/golang-go.prerm | 21 +++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 867b3f4..d2b03d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang (2:1.4.2-3) UNRELEASED; urgency=medium
+
+ * Add missing "prerm" for our new alternatives (thanks piuparts).
+
+ -- Tianon Gravi <admwiggin at gmail.com> Tue, 05 May 2015 23:25:05 +0000
+
golang (2:1.4.2-2) unstable; urgency=medium
* Move "go" and "gofmt" into "/usr/lib/go" and use alternatives to provide
diff --git a/debian/golang-go.prerm b/debian/golang-go.prerm
new file mode 100644
index 0000000..71a0d1a
--- /dev/null
+++ b/debian/golang-go.prerm
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+ remove|deconfigure)
+ update-alternatives --remove go /usr/lib/go/bin/go
+ ;;
+
+ upgrade|failed-upgrade)
+ ;;
+
+ *)
+ echo >&2 "prerm called with unknown argument: $1"
+ exit 0
+ ;;
+esac
+
+
+#DEBHELPER#
+
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git
More information about the pkg-golang-commits
mailing list