Followup-For: Bug #986813 Control: tag -1 patch Please see the attached patch for cleaning up the obsolete alternatives.
Andreas
diff -Nru python-schedutils-0.6/debian/changelog python-schedutils-0.6/debian/changelog --- python-schedutils-0.6/debian/changelog 2019-07-29 19:30:20.000000000 +0200 +++ python-schedutils-0.6/debian/changelog 2021-04-23 14:56:35.000000000 +0200 @@ -1,3 +1,9 @@ +python-schedutils (0.6-3) UNRELEASED; urgency=medium + + * Clean up obsolete alternatives on upgrades. (Closes: #986813) + + -- Andreas Beckmann <a...@debian.org> Fri, 23 Apr 2021 14:56:35 +0200 + python-schedutils (0.6-2) unstable; urgency=medium [ Ondřej Nový ] diff -Nru python-schedutils-0.6/debian/python3-schedutils.preinst python-schedutils-0.6/debian/python3-schedutils.preinst --- python-schedutils-0.6/debian/python3-schedutils.preinst 1970-01-01 01:00:00.000000000 +0100 +++ python-schedutils-0.6/debian/python3-schedutils.preinst 2021-04-23 14:56:29.000000000 +0200 @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "0.6-3~" ; then + update-alternatives --remove pchrt /usr/bin/pchrt3 + update-alternatives --remove ptaskset /usr/bin/ptaskset3 +fi + +#DEBHELPER#