[Pkg-sympa-commits] [SCM] sympa Debian packaging branch, debian/squeeze, updated. debian/6.0.1+dfsg-3-8-gee5ff9b
Emmanuel Bouthenot
kolter at openics.org
Sun Jan 9 13:10:38 UTC 2011
The following commit has been merged in the debian/squeeze branch:
commit 217bcc9498286d63a942ac2cccb469c950276311
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 8deec46..4e11f37 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