Followup-For: Bug #915030 Control: tag -1 patch Hi,
attached is a tested patch the takes care of removing the alternative on upgrades from stretch to buster. I'm considering doing a NMU got get this fixed for buster. Andreas
diff -Nru virt-viewer-7.0/debian/changelog virt-viewer-7.0/debian/changelog --- virt-viewer-7.0/debian/changelog 2018-09-06 21:57:54.000000000 +0200 +++ virt-viewer-7.0/debian/changelog 2019-04-04 16:56:48.000000000 +0200 @@ -1,3 +1,11 @@ +virt-viewer (7.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Remove obsolete /usr/bin/spice-xpi-client alternative on upgrades. + (Closes: #915030) + + -- Andreas Beckmann <a...@debian.org> Thu, 04 Apr 2019 16:56:48 +0200 + virt-viewer (7.0-1) unstable; urgency=medium * [62b4ac8] New upstream version 7.0 diff -Nru virt-viewer-7.0/debian/postinst virt-viewer-7.0/debian/postinst --- virt-viewer-7.0/debian/postinst 1970-01-01 01:00:00.000000000 +0100 +++ virt-viewer-7.0/debian/postinst 2019-04-04 16:56:48.000000000 +0200 @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +# remove obsolete alternative from stretch +if [ "$1" = "configure" ] ; then + update-alternatives --remove spice-xpi-client \ + /usr/bin/spice-xpi-client-remote-viewer +fi + +#DEBHELPER#