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

Please see the attached patch for fixing the obsolete alternative.

Andreas
diff -Nru python-linux-procfs-0.6.3/debian/changelog 
python-linux-procfs-0.6.3/debian/changelog
--- python-linux-procfs-0.6.3/debian/changelog  2021-01-20 14:38:46.000000000 
+0100
+++ python-linux-procfs-0.6.3/debian/changelog  2021-04-23 14:33:03.000000000 
+0200
@@ -1,3 +1,9 @@
+python-linux-procfs (0.6.3-2) UNRELEASED; urgency=medium
+
+  * Remove obsolete alternatives on upgrades.  (Closes: #986812)
+
+ -- Andreas Beckmann <a...@debian.org>  Fri, 23 Apr 2021 14:33:03 +0200
+
 python-linux-procfs (0.6.3-1) unstable; urgency=medium
 
   [ Ondřej Nový ]
@@ -36,7 +42,7 @@
 
   [ Stewart Ferguson ]
   * Removing python2 binary package
-  * Replacing pflags3 with pflags and removing upodate-alternatives
+  * Replacing pflags3 with pflags and removing update-alternatives
     + Breaks python-linux-procfs
   * Removing unused .gitignore ignore rule
   * Removing superfluous copyright block for COPYING file
diff -Nru python-linux-procfs-0.6.3/debian/python3-linux-procfs.preinst 
python-linux-procfs-0.6.3/debian/python3-linux-procfs.preinst
--- python-linux-procfs-0.6.3/debian/python3-linux-procfs.preinst       
1970-01-01 01:00:00.000000000 +0100
+++ python-linux-procfs-0.6.3/debian/python3-linux-procfs.preinst       
2021-04-23 14:33:03.000000000 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "0.6.3-2~" ; then
+  update-alternatives --remove pflags /usr/bin/pflags3
+fi
+
+#DEBHELPER#

Reply via email to