[Pkg-tcltk-commits] r1326 - in dotlrn/tags: . 2.5.0+dfsg-6+wheezy4/debian

geox-guest at alioth.debian.org geox-guest at alioth.debian.org
Fri Jan 4 14:43:27 UTC 2013


Author: geox-guest
Date: 2013-01-04 14:43:26 +0000 (Fri, 04 Jan 2013)
New Revision: 1326

Added:
   dotlrn/tags/2.5.0+dfsg-6+wheezy4/
Modified:
   dotlrn/tags/2.5.0+dfsg-6+wheezy4/debian/changelog
   dotlrn/tags/2.5.0+dfsg-6+wheezy4/debian/dotlrn.preinst
Log:
Fixed old config management in preinst when the package is in
"config files remaining" state (thanks to Andreas Beckmann for
reporting this and providing the fix).



Modified: dotlrn/tags/2.5.0+dfsg-6+wheezy4/debian/changelog
===================================================================
--- dotlrn/tags/2.5.0+dfsg-6+wheezy3/debian/changelog	2012-12-16 18:31:20 UTC (rev 1315)
+++ dotlrn/tags/2.5.0+dfsg-6+wheezy4/debian/changelog	2013-01-04 14:43:26 UTC (rev 1326)
@@ -1,3 +1,11 @@
+dotlrn (2.5.0+dfsg-6+wheezy4) testing-proposed-updates; urgency=low
+
+  * Fixed old config management in preinst when the package is in 
+    "config files remaining" state (thanks to Andreas Beckmann for 
+    reporting this and providing the fix). Closes: #688435
+
+ -- Hector Romojaro <hromojaro at dia.uned.es>  Fri, 04 Jan 2013 14:31:49 +0100
+
 dotlrn (2.5.0+dfsg-6+wheezy3) testing-proposed-updates; urgency=low
 
   * Fixed aolserver restart call in postrm.

Modified: dotlrn/tags/2.5.0+dfsg-6+wheezy4/debian/dotlrn.preinst
===================================================================
--- dotlrn/tags/2.5.0+dfsg-6+wheezy3/debian/dotlrn.preinst	2012-12-16 18:31:20 UTC (rev 1315)
+++ dotlrn/tags/2.5.0+dfsg-6+wheezy4/debian/dotlrn.preinst	2013-01-04 14:43:26 UTC (rev 1326)
@@ -4,10 +4,7 @@
 
 case "$1" in
 
-install)
-    ;;
-
-upgrade)
+install|upgrade)
     # If we're upgrading from 2.5.0+dfsg-6+wheezy1 or earlier, we have to
     # deal with config.tcl which was marked as a conffile and 
     # modified by postinst script.
@@ -18,7 +15,7 @@
     #
     # See Bug #688435
     #  
-    if dpkg --compare-versions "$2" le "2.5.0+dfsg-6+wheezy1"
+    if dpkg --compare-versions "$2" le-nl "2.5.0+dfsg-6+wheezy1"
     then
         # First, make a copy so we can get the old config values
         cp /etc/dotlrn/config.tcl /etc/dotlrn/config.tcl.old_version




More information about the Pkg-tcltk-commits mailing list