[Pkg-tcltk-commits] r328 - tcl8.5/trunk/debian

sgolovan-guest at alioth.debian.org sgolovan-guest at alioth.debian.org
Sat Oct 20 02:39:26 UTC 2007


Author: sgolovan-guest
Date: 2007-10-20 02:39:26 +0000 (Sat, 20 Oct 2007)
New Revision: 328

Modified:
   tcl8.5/trunk/debian/changelog
   tcl8.5/trunk/debian/tcl8.5-dev.preinst
Log:
[tcl8.5] Fixed tcl8.5-dev.preinst script

Modified: tcl8.5/trunk/debian/changelog
===================================================================
--- tcl8.5/trunk/debian/changelog	2007-10-20 02:39:19 UTC (rev 327)
+++ tcl8.5/trunk/debian/changelog	2007-10-20 02:39:26 UTC (rev 328)
@@ -1,3 +1,10 @@
+tcl8.5 (0.b1-3) unstable; urgency=low
+
+  * Fixed tcl8.5-dev.preinst bug in update-alternatives call (ignore return
+    value if tcl.m4 alternative doesn't exist already).
+
+ -- Sergei Golovan <sgolovan at debian.org>  Sat, 20 Oct 2007 06:12:42 +0400
+
 tcl8.5 (0.b1-2) unstable; urgency=low
 
   [ Sergei Golovan ]

Modified: tcl8.5/trunk/debian/tcl8.5-dev.preinst
===================================================================
--- tcl8.5/trunk/debian/tcl8.5-dev.preinst	2007-10-20 02:39:19 UTC (rev 327)
+++ tcl8.5/trunk/debian/tcl8.5-dev.preinst	2007-10-20 02:39:26 UTC (rev 328)
@@ -5,7 +5,7 @@
 if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "0.b1-2"; then
     update-alternatives --remove tcl.m4 /usr/lib/tcl8.5/tcl.m4
     # We really want to remove this alternative
-    update-alternatives --auto tcl.m4
+    update-alternatives --auto tcl.m4 >/dev/null || true
 fi
 
 #DEBHELPER#




More information about the Pkg-tcltk-commits mailing list