[Pkg-sympa-commits] [SCM] sympa Debian packaging branch, master, updated. debian/6.1.1_dfsg-2-12-g8f2f56a

Emmanuel Bouthenot kolter at openics.org
Sun Jan 9 22:43:30 UTC 2011


The following commit has been merged in the master branch:
commit 387d68985afb195a54777e1d220cb2a7a26bfed6
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Sun Jan 9 11:33:42 2011 +0000

    Fix the empty 'supported_lang' option from a newly generated sympa.conf when no locales are installed (#606704).

diff --git a/debian/postinst b/debian/postinst
index f85d858..87f29a2 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -72,6 +72,9 @@ lang="$RET"
 perl -pi~ -e "s/^\s*lang.*$/lang\t\t$lang/;" "$conf"
 rm -f "$conf"~
 
+# Fixing supported_lang if empty
+perl -i -pe "s/^\s*(supported_lang)\s*\$/\$1\t\tnone\n/;" "$conf"
+
 # Get the hostname
 db_get sympa/hostname
 hostn="$RET"

-- 
sympa Debian packaging



More information about the Pkg-sympa-commits mailing list