[Pkg-mailman-hackers] Pkg-mailman commit - rev 647 - trunk/debian
Thijs Kinkhorst
thijs at alioth.debian.org
Sun Jan 3 14:48:00 UTC 2010
Author: thijs
Date: 2010-01-03 14:47:59 +0000 (Sun, 03 Jan 2010)
New Revision: 647
Modified:
trunk/debian/config
Log:
it's cleaner not to hardcode a path when not needed
Modified: trunk/debian/config
===================================================================
--- trunk/debian/config 2010-01-03 14:37:07 UTC (rev 646)
+++ trunk/debian/config 2010-01-03 14:47:59 UTC (rev 647)
@@ -12,8 +12,8 @@
# time, but then no languages are used either.
if python </dev/null 2>/dev/null ; then
# list_lists may fail if mm_cfg is not yet installed
- ( for ml in $(/usr/sbin/list_lists -b 2>/dev/null); do
- ( /usr/sbin/config_list -o - ${ml} 2>/dev/null
+ ( for ml in $(list_lists -b 2>/dev/null); do
+ ( config_list -o - ${ml} 2>/dev/null
cat <<EOF
try: print '\n'.join(available_languages)
except: pass
@@ -44,7 +44,7 @@
db_fget mailman/used_languages scanned || true
scanned="${RET}"
-if [ ! -x "/usr/sbin/list_lists" ] ; then
+if ! which list_lists >/dev/null 2>&1; then
# For 1st time installers there is no used language.
db_set mailman/site_languages "en"
db_set mailman/used_languages ""
More information about the Pkg-mailman-hackers
mailing list