The problem is that the override is not being set if the file is empty
and the package creates empty files.

Having said that, the package needs a lot of work with lintian errors
and such. Part of those fixes would be a sane installation and using
'ucf' to manage the updates of the files. As that adds a dependency, I'm
thinking of using this patch:


--- mailreader.orig/debian/postinst     2008-08-28 22:13:02.000000000 +0100
+++ mailreader-2.3.36/debian/postinst   2008-08-28 22:13:11.000000000 +0100
@@ -1,4 +1,4 @@
-#! /bin/sh -e
+#! /bin/sh
 # postinst script for mailreader
 #
 # see: dh_installdeb(1)
@@ -271,11 +271,15 @@
                if $RET; then
                        mv /etc/${PACKAGE}/server.cfg 
/etc/${PACKAGE}/server.cfg.dpkg-old
                fi
+       else
+               mv ${SVRCONF} /etc/${PACKAGE}/server.cfg
        fi
        if [ -s /etc/${PACKAGE}/main.cfg ]; then
                if $RET; then
                        mv /etc/${PACKAGE}/main.cfg 
/etc/${PACKAGE}/main.cfg.dpkg-old
                fi
+       else
+               mv ${MAINCONF} /etc/${PACKAGE}/main.cfg
        fi
        if $RET; then
                mv ${SVRCONF} /etc/${PACKAGE}/server.cfg




With that change, the config files get set up correctly.


$ ls /etc/mailreader/ -l
total 12
-rw-r--r-- 1 root root 6236 Aug 28 21:17 main.cfg
-rw-r--r-- 1 root root  582 Aug 28 21:17 server.cfg


-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to