[Pkg-mailman-hackers] Pkg-mailman commit - rev 52 - trunk/debian
Bernd S. Brentrup
bsb@haydn.debian.org
Sat, 10 Apr 2004 04:49:07 -0600
Author: bsb
Date: 2004-04-10 04:49:04 -0600 (Sat, 10 Apr 2004)
New Revision: 52
Modified:
trunk/debian/changelog
trunk/debian/config
Log:
Don't run list_lists when upgrading from pre 2.1.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-04-08 17:04:23 UTC (rev 51)
+++ trunk/debian/changelog 2004-04-10 10:49:04 UTC (rev 52)
@@ -1,10 +1,12 @@
-mailman (2.1.4-4) UNRELEASED; urgency=low
+mailman (2.1.4-4) UNRELEASED; urgency=medium
* NOT YET RELEASED
* Fix README.Debian concerning URLs (bsb, closes: #235835).
* Add fix for missing installation of Danish templates (by GCS)
+ * config: don't try to list_lists when upgrading from pre 2.1
+ (bsb, closes: #242945).
- -- Siggy Brentrup <bsb@debian.org> Tue, 6 Apr 2004 23:52:06 +0200
+ -- Siggy Brentrup <bsb@debian.org> Sat, 10 Apr 2004 12:46:59 +0200
mailman (2.1.4-3) unstable; urgency=medium
Modified: trunk/debian/config
===================================================================
--- trunk/debian/config 2004-04-08 17:04:23 UTC (rev 51)
+++ trunk/debian/config 2004-04-10 10:49:04 UTC (rev 52)
@@ -39,13 +39,22 @@
# while its seen flag is mainly used for cosmetical reasons to mark
# processed values in debconf-show output.
-db_get mailman/used_languages
+db_get mailman/used_languages || true
used_languages="${RET}"
-db_fget mailman/used_languages scanned
+db_fget mailman/used_languages scanned || true
scanned="${RET}"
-if [ ! -x "/usr/sbin/list_lists" ]; then
- db_set mailman/site_languages "en"
+if [ ! -z "$2" ] && dpkg --compare-versions $2 lt 2.1 ; then
+ # list_lists will fail when upgrading from pre 2.1; but with those
+ # versions not supporting i18n, english was the only used language.
+ db_set mailman/site_languages "en"
+ db_set mailman/used_languages "en"
+ db_fset mailman/used_languages scanned false
+elif [ ! -x "/usr/sbin/list_lists" ] ; then
+ # For 1st time installers there is no used language.
+ db_set mailman/site_languages "en"
+ db_set mailman/used_languages ""
+ db_fset mailman/used_languages scanned false
else
if [ "${scanned}" != "true" ] ; then
echo -n "Looking for enabled languages (this may take some time) ..."