diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 13:20:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 13:20:27 +0000 |
commit | 781b5caac364cb34393174b491ef3a8c56192976 (patch) | |
tree | a2b1d43df8cd9333bb5e5d086a8892e4264a59c3 /debian/golang-go.preinst | |
parent | Adding upstream version 2:1.19~1. (diff) | |
download | golang-defaults-debian.tar.xz golang-defaults-debian.zip |
Adding debian version 2:1.19~1.debian/2%1.19_1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/golang-go.preinst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/golang-go.preinst b/debian/golang-go.preinst new file mode 100755 index 0000000..b089334 --- /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 |