[Pkg-mailman-hackers] Pkg-mailman commit - rev 344 - trunk/debian

Matej Vela vela at costa.debian.org
Thu Aug 24 12:48:11 UTC 2006


Author: vela
Date: 2006-08-24 12:48:11 +0000 (Thu, 24 Aug 2006)
New Revision: 344

Modified:
   trunk/debian/postinst
Log:
Safeguard against unexpected whitespace.

Modified: trunk/debian/postinst
===================================================================
--- trunk/debian/postinst	2006-08-24 12:38:14 UTC (rev 343)
+++ trunk/debian/postinst	2006-08-24 12:48:11 UTC (rev 344)
@@ -160,7 +160,7 @@
 
     if [ -e /etc/mailman/mm_cfg.py ]; then
         db_get mailman/default_server_language || true
-        if [ ${RET} ]; then
+        if [ -n "$RET" ]; then
             default_server_language=${RET}
             sed -e s/DEFAULT_SERVER_LANGUAGE.*=.*\'..\'/DEFAULT_SERVER_LANGUAGE\ =\ \'${default_server_language}\'/ ${mm_etc}/mm_cfg.py > ${mm_etc}/mm_cfg.py.$$
             mv -f ${mm_etc}/mm_cfg.py.$$ ${mm_etc}/mm_cfg.py




More information about the Pkg-mailman-hackers mailing list