[Pkg-jed-commit] r485 - jed/trunk/debian

Rafael Laboissiere rafael at alioth.debian.org
Thu Jan 11 13:39:40 CET 2007


Author: rafael
Date: 2007-01-11 13:39:39 +0100 (Thu, 11 Jan 2007)
New Revision: 485

Modified:
   jed/trunk/debian/jed-common.config
Log:
Consider the md5sums of all possibly released configuration files:
this covers potato, woody, and SVN revisions between 2 and 58; sarge
was released before SVN revision 58 and starting at SVN revision 59
the /etc/jed-init.d/ was not used anymore.


Modified: jed/trunk/debian/jed-common.config
===================================================================
--- jed/trunk/debian/jed-common.config	2007-01-10 16:48:32 UTC (rev 484)
+++ jed/trunk/debian/jed-common.config	2007-01-11 12:39:39 UTC (rev 485)
@@ -4,34 +4,44 @@
 
 . /usr/share/debconf/confmodule
 
-# Files 00site.sl and 99defaults.sl are duplicated below because we
-# consider the version released in woody as well as the latest version in
-# testing before these values were deprecated
-file_0=/etc/jed-init.d/00site.sl
-file_1=$file_0
-file_2=/etc/jed-init.d/99defaults.sl
-file_3=$file_2
-file_4=/etc/jed-init.d/00debian.sl
-file_5=/etc/jed.conf
+# md5sums from jed-0.99.9 (potato)
+file_0=38af7aa6498bfd7be927aa52c6c46585:/etc/jed-init.d/00site.sl
+file_1=91a5aee61e23906dcfffd24904d7ef62:/etc/jed-init.d/99default.sl
 
-# md5sums from jed-0.99.9-14 (woody)
-md5sum_0=38af7aa6498bfd7be927aa52c6c46585
-md5sum_1=91a5aee61e23906dcfffd24904d7ef62
+# md5sums from jed-0.99.15-5 (woody)
+file_2=ce466753801194229b9b78f0b3b7e28c:/etc/jed-init.d/00site.sl
+file_3=5f0954b045b6b81f1ef0ba545d42c000:/etc/jed.conf
 
-# md5sums posted by Rafael Laboissiere on pkg-jed-devel at l.a.d.o
-md5sum_2=38af7aa6498bfd7be927aa52c6c46585
-md5sum_3=1514586554dfe5aefcee84aa967fb01b
+# md5sums from SVN revisions 2 to 35
+file_4=5bf498a3703c5330e3acea00d0fa7a87:/etc/jed-init.d/00debian.sl
 
-# md5sum from jed-common 0.99.16-5 (sarge)
-md5sum_4=5bf498a3703c5330e3acea00d0fa7a87
-md5sum_5=5f0954b045b6b81f1ef0ba545d42c000
+# md5sums from SVN revisions 36 to 41
+file_5=28962c5ff0ff7cfcc58a22394599967e:/etc/jed-init.d/00debian.sl
 
+# md5sums from SVN revisions 42 to 55
+file_6=472a1d8dbdc16496ba51334f62366466:/etc/jed-init.d/00debian.sl
+
+# md5sums from SVN revisions 50 to 56
+file_7=da918de66b912df0205c5b38401b09b6:/etc/jed.conf
+
+# md5sums from SVN revisions 57
+file_8=fc2b1e847dd08da8b338a50ab04d1eb0:/etc/jed.conf
+
+# md5sums from SVN revisions 58
+file_9=3b919dbba6a2656a926f818344a60552:/etc/jed.conf
+
+# (starting at SVN revision 59, the /etc/jed-init.d/ was not used anymore)
+
 changed=false
 
-for n in 0 1 2 3 4 5 ; do
-    eval "file=\$file_$n ; md5sum=\$md5sum_$n"
+for n in `seq 0 9` ; do
+    eval "tmp=\$file_$n"
+    md5sum=`echo $tmp | cut -d: -f1`
+    file=`echo $tmp | cut -d: -f2` 
     if [ -e $file ] ; then
         if echo "$md5sum  $file" | md5sum -c >/dev/null 2>&1 ; then
+	    # The configuration file was not changed by the user: remove it
+	    # silently
 	    rm -f $file
 	else
 	    changed=true




More information about the Pkg-jed-commit mailing list