Package: lynx-cur
Version: 2.8.7dev4-1
Tags: patch
File: /var/lib/dpkg/info/lynx-cur.postrm

The primary goal of this patch is to preserve the configuration file
local.cfg when the package is removed but not purged.  As a 2ndary
effect, it drops old code, removes a needless conditional, and
introduces copies quoting and such.

--- /var/lib/dpkg/info/lynx-cur.postrm
+++ /tmp/tmp.RNXNb10148/lynx-cur.postrm 2008-04-07 19:03:13.000000000 -0400
@@ -5,21 +5,8 @@
 
 set -e
 
-if [ "$1" = "remove" ]; then
-    rm -f ${cnfdir}/local.cfg
-# handle duplicated lynx.mo
-#    for l in ca cs da de et fr hu it ja nl pt_BR ru sl sv tr uk zh_CN zh_TW
-#    do
-#      dpkg-divert --package lynx-cur --remove --rename --divert \
-#      /usr/share/locale/${l}/LC_MESSAGES/lynx.mo.old \
-#        /usr/share/locale/${l}/LC_MESSAGES/lynx.mo
-#    done
-fi
-
 if [ "$1" = "purge" ]; then
-    if [ -d ${cnfdir} ] ; then
-       rm -r ${cnfdir}
-    fi
+       rm -fr -- "${cnfdir}"
 fi
 
 # dh_installdeb will replace this with shell code automatically




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

Reply via email to