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

Hi David,

I just looked at this again and created a minimal patch that only fixes
the prerm script to remove the correct alternative. Tested in piuparts
and works fine now :-)

I'll upload this as a NMU (unless you object) and hope that we can get
this still fixed in wheezy.
Any other changes that are currently in the repository have not been
considered ... that will have to wait for jessie.

Andreas
>From 897693bfbf2480fac817eb29997abad54dbac94e Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <beckm...@cs.uni-frankfurt.de>
Date: Sat, 26 Jan 2013 16:53:45 +0100
Subject: [PATCH] prerm: fix typo preventing proper cleanup of alternatives

---
 debian/changelog  |    8 ++++++++
 debian/sisc.prerm |    2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 734bb7f..527d13a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sisc (1.16.6-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * sisc.prerm: Unregister the correct alternatives on package removal.
+    (Closes: #668440)
+
+ -- Andreas Beckmann <a...@debian.org>  Sat, 26 Jan 2013 16:53:07 +0100
+
 sisc (1.16.6-1) unstable; urgency=low
 
   * Repackaged to conform to current Debian standards.
diff --git a/debian/sisc.prerm b/debian/sisc.prerm
index 917eebd..b935828 100644
--- a/debian/sisc.prerm
+++ b/debian/sisc.prerm
@@ -7,7 +7,7 @@ if [ "$1" = "remove" ]; then
    inl="$inl scheme-ieee-1178-1900"
    
    for int in $inl; do
-       update-alternatives --remove "$int" /usr/share/sisc/srfi-22
+       update-alternatives --remove "$int" /usr/share/sisc/srfi-22.sh
    done
 fi
 
-- 
1.7.10.4

Reply via email to