Followup-For: Bug #910224
Control: tag -1 patch

Hi,

attached is an *untested* patch to clean up the obsolete diversions.


Andreas
diff -Naur python-saharaclient-2.0.0.orig/debian/changelog 
python-saharaclient-2.0.0/debian/changelog
--- python-saharaclient-2.0.0.orig/debian/changelog     2018-09-04 
22:45:05.000000000 +0200
+++ python-saharaclient-2.0.0/debian/changelog  2018-11-29 17:53:24.600586356 
+0100
@@ -1,3 +1,10 @@
+python-saharaclient (2.0.0-3) UNRELEASED; urgency=medium
+
+  [ Andreas Beckmann ]
+  * Remove obsolete alternatives on upgrade.  (Closes: #910224)
+
+ -- Andreas Beckmann <[email protected]>  Thu, 29 Nov 2018 17:50:48 +0100
+
 python-saharaclient (2.0.0-2) unstable; urgency=medium
 
   * Uploading to unstable.
diff -Naur python-saharaclient-2.0.0.orig/debian/python-saharaclient.postinst 
python-saharaclient-2.0.0/debian/python-saharaclient.postinst
--- python-saharaclient-2.0.0.orig/debian/python-saharaclient.postinst  
1970-01-01 01:00:00.000000000 +0100
+++ python-saharaclient-2.0.0/debian/python-saharaclient.postinst       
2018-11-29 17:49:28.056075157 +0100
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] ; then
+       update-alternatives --remove sahara /usr/bin/python2-sahara
+fi
+
+#DEBHELPER#
+
+exit 0
diff -Naur python-saharaclient-2.0.0.orig/debian/python3-saharaclient.postinst 
python-saharaclient-2.0.0/debian/python3-saharaclient.postinst
--- python-saharaclient-2.0.0.orig/debian/python3-saharaclient.postinst 
1970-01-01 01:00:00.000000000 +0100
+++ python-saharaclient-2.0.0/debian/python3-saharaclient.postinst      
2018-11-29 17:50:22.228187954 +0100
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] ; then
+       update-alternatives --remove sahara /usr/bin/python3-sahara
+fi
+
+#DEBHELPER#
+
+exit 0

Reply via email to