[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#987158: unblock: chezscheme/9.5.4+dfsg-4



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package chezscheme

[ Reason ]
A new version will fix obsolete alternatives left after upgrading from
buster (#986875).

[ Impact ]
Broken alternatives could be left on the system.

[ Tests ]
The patch was created and tested by anbe@d.o, and I have manually
verified that the broken alternatives were removed when upgrading from
buster to the fixed version.

[ Risks ]
The change itself looks trivial.

[ Other info ]
I've prepared a source upload for unstable and I'm holding off on
uploading it until I receive instructions from you.

unblock chezscheme/9.5.4+dfsg-4




diff --git a/debian/changelog b/debian/changelog
index 1a8e062..b55cdd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+chezscheme (9.5.4+dfsg-4) unstable; urgency=medium
+
+  * chezscheme.postinst: Clean up obsolete versioned alternatives on
+    upgrades from buster. Thanks to Andreas Beckmann for the report and
+    the patch! (Closes: #986875)
+
+ -- Göran Weinholt <weinholt@debian.org>  Sun, 18 Apr 2021 16:54:30 +0200
+
 chezscheme (9.5.4+dfsg-3) unstable; urgency=medium
 
   * debian/rules: Only override dh_link if chezscheme is built.
diff --git a/debian/chezscheme.postinst b/debian/chezscheme.postinst
index 6c578b0..cf85df9 100644
--- a/debian/chezscheme.postinst
+++ b/debian/chezscheme.postinst
@@ -17,6 +17,13 @@ if [ "$1" = "configure" ]; then
                         --slave /usr/share/man/man1/scheme-script.1.gz \
                                 scheme-script.1.gz \
                                 /usr/share/man/man1/scheme-script-chez.1.gz
+
+    if dpkg --compare-versions "$2" lt-nl "9.5.4+dfsg-4~" ; then
+        CHEZ_VERSION=9.5
+        update-alternatives --remove scheme /usr/bin/chezscheme${CHEZ_VERSION}
+        update-alternatives --remove scheme-script /usr/bin/chezscheme${CHEZ_VERSION}
+    fi
+
 fi
 
 #DEBHELPER#

Reply to: