Bug#668442: tucnak2: leaves alternatives after purge
Followup-For: Bug #668442
Control: found -1 2.48-1
Hi,
the prerm script is wrong (in 2.48-2, too), it tries to unregister the
"generic name" instead of the "alternative path". I'm attaching a patch
to fix this via t-p-u. I asked the release team for approval (#704849)
and plan to NMU tucnak2 if this is granted.
Andreas
diff -u tucnak2-2.47/debian/prerm tucnak2-2.47/debian/prerm
--- tucnak2-2.47/debian/prerm
+++ tucnak2-2.47/debian/prerm
@@ -1,12 +1,8 @@
#!/bin/sh
-
set -e
-case "$1" in
- remove|deconfigure)
- update-alternatives --quiet --remove tucnak /usr/bin/tucnak2
- ;;
- *)
-esac
+if [ "$1" = "remove" ] ; then
+ update-alternatives --remove tucnak /usr/bin/tucnak
+fi
#DEBHELPER#
diff -u tucnak2-2.47/debian/changelog tucnak2-2.47/debian/changelog
--- tucnak2-2.47/debian/changelog
+++ tucnak2-2.47/debian/changelog
@@ -1,3 +1,10 @@
+tucnak2 (2.47-2+deb7u1) testing; urgency=low
+
+ * Non-maintainer upload.
+ * Remove the correct alternative upon package removal. (Closes: #668442)
+
+ -- Andreas Beckmann <anbe@debian.org> Sat, 06 Apr 2013 18:39:42 +0200
+
tucnak2 (2.47-2) unstable; urgency=low
* Fixed the update-alternatives.
Reply to: