[love] 02/02: remove half-done alternatives support
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Wed Dec 21 09:42:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository love.
commit 774bfc3c385b39672d0c85603c092960f430014b
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Wed Dec 21 10:41:14 2016 +0100
remove half-done alternatives support
- this would have bugged on binfmt anyway
---
debian/changelog | 1 +
debian/love.lintian-overrides | 2 --
debian/love.postinst | 10 ----------
debian/love.preinst | 9 +++++++++
debian/love.prerm | 6 ------
5 files changed, 10 insertions(+), 18 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 7f6020c..5614fb3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ love (0.10.2-1) UNRELEASED; urgency=medium
also drop all references in Debian packaging
* Manpage has been accepted by upstream, drop Debian one
* Switch to compat level 10 and use DH sequencer for d/rules
+ * Remove never-used support for alternatives
-- Alexandre Detiste <alexandre.detiste at gmail.com> Sun, 18 Dec 2016 12:50:20 +0100
diff --git a/debian/love.lintian-overrides b/debian/love.lintian-overrides
deleted file mode 100644
index 5647985..0000000
--- a/debian/love.lintian-overrides
+++ /dev/null
@@ -1,2 +0,0 @@
-# /usr/bin/love is managed by update-alternatives
-love binary: desktop-command-not-in-package
diff --git a/debian/love.postinst b/debian/love.postinst
index 70d58d4..2d84a1a 100644
--- a/debian/love.postinst
+++ b/debian/love.postinst
@@ -20,16 +20,6 @@ set -e
case "$1" in
configure)
- update-alternatives --quiet --install \
- /usr/bin/love \
- love \
- /usr/bin/love-0.9 \
- 10
- update-alternatives --quiet --install \
- /usr/share/man/man1/love.1.gz \
- love.1.gz \
- /usr/share/man/man1/love-0.9.1.gz \
- 10
if which update-binfmts >/dev/null; then
update-binfmts --import love
fi
diff --git a/debian/love.preinst b/debian/love.preinst
new file mode 100644
index 0000000..18c3f2e
--- /dev/null
+++ b/debian/love.preinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+update-alternatives --remove-all love > /dev/null 2> /dev/null || true
+update-alternatives --remove-all love.1.gz > /dev/null 2> /dev/null || true
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/love.prerm b/debian/love.prerm
index 4d617ac..491dcf8 100644
--- a/debian/love.prerm
+++ b/debian/love.prerm
@@ -22,12 +22,6 @@ case "$1" in
if which update-binfmts >/dev/null; then
update-binfmts --package love --remove love /usr/bin/love
fi
- update-alternatives --quiet --remove \
- love \
- /usr/bin/love-0.9
- update-alternatives --quiet --remove \
- love.1.gz \
- /usr/share/man/man1/love-0.9.1.gz
;;
failed-upgrade)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/love.git
More information about the Pkg-games-commits
mailing list