[freeciv] 06/20: Remove all alternatives and their associated slave links in prerm.
Markus Koschany
apo-guest at moszumanska.debian.org
Mon Apr 13 18:01:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch experimental
in repository freeciv.
commit f6e4c42bdd1f1b08916698d5a3d46eee1ea4855c
Author: Markus Koschany <apo at gambaru.de>
Date: Mon Apr 13 13:38:58 2015 +0200
Remove all alternatives and their associated slave links in prerm.
---
debian/freeciv-client-gtk.prerm | 19 +------------------
debian/freeciv-client-gtk3.prerm | 7 +++++++
debian/freeciv-client-qt.prerm | 2 +-
debian/freeciv-client-sdl.prerm | 2 +-
4 files changed, 10 insertions(+), 20 deletions(-)
diff --git a/debian/freeciv-client-gtk.prerm b/debian/freeciv-client-gtk.prerm
index adee09f..4dc0cce 100644
--- a/debian/freeciv-client-gtk.prerm
+++ b/debian/freeciv-client-gtk.prerm
@@ -2,21 +2,4 @@
set -e
-update-alternatives --remove freeciv /usr/games/freeciv-gtk2
-
-if [ -f /etc/ggz.modules ]; then
- # If we are the only thing in ggz.modules, remove it. This will finally
- # remove the pipuarts 'file not owned' warning.
- if [ 1 -eq `grep -c '{prefix}' /etc/ggz.modules` ] && \
- [ 1 -eq `grep -c 'CommandLine' /etc/ggz.modules` ]; then
- rm -f /etc/ggz.modules
- fi
-
- # If no one else is using it, they can create it when they need it.
- if [ 1 -eq `wc -l /etc/ggz.modules |cut -d ' ' -f 1` ]; then
- rm -f /etc/ggz.modules
- fi
-fi
-
-#DEBHELPER#
-
+update-alternatives --remove-all freeciv
diff --git a/debian/freeciv-client-gtk3.prerm b/debian/freeciv-client-gtk3.prerm
new file mode 100644
index 0000000..af7988d
--- /dev/null
+++ b/debian/freeciv-client-gtk3.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+update-alternatives --remove-all freeciv
+
+#DEBHELPER#
diff --git a/debian/freeciv-client-qt.prerm b/debian/freeciv-client-qt.prerm
index 334044e..af7988d 100644
--- a/debian/freeciv-client-qt.prerm
+++ b/debian/freeciv-client-qt.prerm
@@ -2,6 +2,6 @@
set -e
-update-alternatives --remove freeciv /usr/games/freeciv-qt
+update-alternatives --remove-all freeciv
#DEBHELPER#
diff --git a/debian/freeciv-client-sdl.prerm b/debian/freeciv-client-sdl.prerm
index 19275ac..af7988d 100644
--- a/debian/freeciv-client-sdl.prerm
+++ b/debian/freeciv-client-sdl.prerm
@@ -2,6 +2,6 @@
set -e
-update-alternatives --remove freeciv /usr/games/freeciv-sdl
+update-alternatives --remove-all freeciv
#DEBHELPER#
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/freeciv.git
More information about the Pkg-games-commits
mailing list