[gnuplot] 02/09: Remove old alternatives in postinst. (Closes: #826721)

Anton Gladky gladk at moszumanska.debian.org
Thu Jun 9 20:23:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository gnuplot.

commit aaa4091ef18d28d6afec24bed8a8f84a08e203e2
Author: Anton Gladky <gladk at debian.org>
Date:   Wed Jun 8 21:52:50 2016 +0200

    Remove old alternatives in postinst. (Closes: #826721)
---
 debian/gnuplot-nox.postinst | 4 ++++
 debian/gnuplot-qt.postinst  | 4 ++++
 debian/gnuplot-x11.postinst | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/debian/gnuplot-nox.postinst b/debian/gnuplot-nox.postinst
index 5e37f59..7e728d5 100644
--- a/debian/gnuplot-nox.postinst
+++ b/debian/gnuplot-nox.postinst
@@ -14,4 +14,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
       /usr/share/man/man1/gnuplot-nox.1.gz
 fi
 
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove gnuplot4 /usr/bin/gnuplot4-nox
+fi
+
 #DEBHELPER#
diff --git a/debian/gnuplot-qt.postinst b/debian/gnuplot-qt.postinst
index f170778..5e1717d 100644
--- a/debian/gnuplot-qt.postinst
+++ b/debian/gnuplot-qt.postinst
@@ -14,4 +14,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
       /usr/share/man/man1/gnuplot-qt.1.gz
 fi
 
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove gnuplot4 /usr/bin/gnuplot4-qt
+fi
+
 #DEBHELPER#
diff --git a/debian/gnuplot-x11.postinst b/debian/gnuplot-x11.postinst
index 199565d..ab16ea2 100644
--- a/debian/gnuplot-x11.postinst
+++ b/debian/gnuplot-x11.postinst
@@ -14,4 +14,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
       /usr/share/man/man1/gnuplot-x11.1.gz
 fi
 
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove gnuplot4 /usr/bin/gnuplot4-x11
+fi
+
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gnuplot.git



More information about the debian-science-commits mailing list