[Pkg-tigervnc-devel] [Git][debian-remote-team/tigervnc][master] Remove the dangling tigervncpasswd alternative if the tigervnc-tools package...
Joachim Falk (@jfalk-guest)
gitlab at salsa.debian.org
Sat Dec 31 17:43:43 GMT 2022
Joachim Falk pushed to branch master at Debian Remote Packaging Team / tigervnc
Commits:
d65cf2c6 by Joachim Falk at 2022-12-31T18:43:02+01:00
Remove the dangling tigervncpasswd alternative if the tigervnc-tools package is not installed (closes: #1027288).
- - - - -
1 changed file:
- + debian/tigervnc-common.preinst
Changes:
=====================================
debian/tigervnc-common.preinst
=====================================
@@ -0,0 +1,24 @@
+#!/bin/sh
+set -e
+
+bindir=/usr/bin
+mandir=/usr/share/man
+
+if [ "$1" = "upgrade" ]; then
+ # Check for upgrade from below or equal to 1.12.0+dfsg-7
+ if dpkg --compare-versions "$2" le-nl 1.12.0+dfsg-7; then
+ if ! dpkg -s tigervnc-tools >/dev/null 2>/dev/null; then
+ # When upgrading from below or equal to 1.12.0+dfsg-7 and the
+ # tigervnc-tools package is not installed, remove a possible remaining
+ # dangling tigervncpasswd alternative (closes: #1027288).
+ for tiger in tigervncpasswd; do
+ notiger=`echo $tiger | sed -e 's/tiger//'`;
+ update-alternatives --remove $notiger $bindir/$tiger
+ done
+ fi
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
View it on GitLab: https://salsa.debian.org/debian-remote-team/tigervnc/-/commit/d65cf2c6c8820f92b5562c7faecd0b819350e2d1
--
View it on GitLab: https://salsa.debian.org/debian-remote-team/tigervnc/-/commit/d65cf2c6c8820f92b5562c7faecd0b819350e2d1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-tigervnc-devel/attachments/20221231/9fcbacda/attachment-0001.htm>
More information about the Pkg-tigervnc-devel
mailing list