diff options
author | Tianon Gravi <admwiggin@gmail.com> | 2015-05-05 17:26:29 -0600 |
---|---|---|
committer | Tianon Gravi <admwiggin@gmail.com> | 2015-05-05 17:26:35 -0600 |
commit | b4e5f9697a508f5dc9beb3a74cbaf9a9ebd50650 (patch) | |
tree | 5f759553d342cb96756a4e0cd10bf27a23ca7e22 | |
parent | 9f0f19b92d0b198974c1cb4292a998384752572b (diff) | |
download | golang-b4e5f9697a508f5dc9beb3a74cbaf9a9ebd50650.tar.gz |
Add missing "prerm" for our new alternatives (thanks piuparts)
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/golang-go.prerm | 21 |
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 867b3f474..d2b03d739 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@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 000000000..71a0d1a8c --- /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 |