tags 459677 + patch
thanks

Here is a patch to solve this issue, based on the code on
http://wiki.debian.org/DpkgConffileHandling with the .dpkg-bak changed
to .dpkg-old.  Note that the version number used need to match the
version where this change is introduced.

diff -ur makedev-2.3.1.orig/debian/preinst makedev-2.3.1/debian/preinst
--- makedev-2.3.1.orig/debian/preinst   2008-01-27 01:57:19.000000000 +0100
+++ makedev-2.3.1/debian/preinst        2008-01-27 01:59:22.000000000 +0100
@@ -1,5 +1,29 @@
 #!/bin/sh

+# Remove a no-longer used conffile
+rm_conffile() {
+    PKGNAME="$1"
+    CONFFILE="$2"
+    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}\"`"
+        if [ "$md5sum" != "$old_md5sum" ]; then
+            echo "Obsolete conffile $CONFFILE has been modified by you."
+            echo "Saving as $CONFFILE.dpkg-old ..."
+            mv -f "$CONFFILE" "$CONFFILE".dpkg-old
+        else
+            echo "Removing obsolete conffile $CONFFILE ..."
+            rm -f "$CONFFILE"
+        fi
+    fi
+}
+case "$1" in
+install|upgrade)
+    if dpkg --compare-versions "$2" le "2.3.1-84"; then
+        rm_conffile makedev /etc/init.d/makedev
+    fi
+esac
+
 rm -f /usr/man/man8/MAKEDEV.8 /usr/man/man8/MAKEDEV-C.8 \
        /usr/man/man8/MAKEDEV-C.8.gz




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to