[med-svn] r4429 - trunk/packages/dcmtk/trunk/debian

Andreas Tille tille at alioth.debian.org
Thu Dec 3 07:10:05 UTC 2009


Author: tille
Date: 2009-12-03 07:10:03 +0000 (Thu, 03 Dec 2009)
New Revision: 4429

Modified:
   trunk/packages/dcmtk/trunk/debian/dcmtk.preinst
Log:
Fix a problem in preinst previousely introduced by myself


Modified: trunk/packages/dcmtk/trunk/debian/dcmtk.preinst
===================================================================
--- trunk/packages/dcmtk/trunk/debian/dcmtk.preinst	2009-12-02 16:58:54 UTC (rev 4428)
+++ trunk/packages/dcmtk/trunk/debian/dcmtk.preinst	2009-12-03 07:10:03 UTC (rev 4429)
@@ -8,7 +8,7 @@
 
 # Remove a no-longer used conffile
 rm_conffile() {
-    CONFFILE="$2"
+    CONFFILE="$1"
     if [ -e "$CONFFILE" ]; then
         md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
         old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
@@ -28,9 +28,9 @@
 case "$1" in
 install|upgrade)
     if dpkg --compare-versions "$2" le "$LASTVERSION"; then
-        prep_mv_conffile "/etc/dcmtk/imagectn.cfg"
-	prep_mv_conffile "/etc/default/imagectn"
-	prep_mv_conffile "/etc/init.d/imagectn"
+        rm_conffile "/etc/dcmtk/imagectn.cfg"
+	rm_conffile "/etc/default/imagectn"
+	rm_conffile "/etc/init.d/imagectn"
     fi
 esac
 




More information about the debian-med-commit mailing list