]> git.donarmstrong.com Git - roundcube.git/commitdiff
Imported Debian patch 0.1.1-3
authorVincent Bernat <bernat@debian.org>
Thu, 8 May 2008 07:50:24 +0000 (09:50 +0200)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 17:26:29 +0000 (19:26 +0200)
debian/changelog
debian/control
debian/roundcube-core.config

index 34e5dac0ecfb65cc9761df14d9ced0f60bb86525..c2f5c1455e9c60233b5d3d4f63f200aca7b77c0f 100644 (file)
@@ -1,3 +1,16 @@
+roundcube (0.1.1-3) unstable; urgency=low
+
+  * Fix an error introduced when fixing bug #476803. Thanks to Micah
+    Anderson for spotting it (Closes: #479775).
+  * Avoid to pop language question at every upgrade. Thanks to Ivan Vucica
+    for spotting this. The problem lied in the use of db_metaget to get
+    the value of a key set by db_subst in a previous invocation. It seems
+    this is not possible any more (Closes: #480043). The fix implies that
+    we won't ask the question again if more languages are available since
+    last upgrade.
+
+ -- Vincent Bernat <bernat@debian.org>  Thu, 08 May 2008 09:50:24 +0200
+
 roundcube (0.1.1-2) unstable; urgency=low
 
   * Comment by default Alias directive for tinymce in Apache configuration
index f2843b82b751cfb8d296b90c948b71853b723b11..41c988827a02ea55ebd9b270899cfd95eb61b27f 100644 (file)
@@ -2,7 +2,7 @@ Source: roundcube
 Section: web
 Priority: extra
 Maintainer: Debian Roundcube Maintainers <pkg-roundcube-maintainers@lists.alioth.debian.org>
-Uploaders: Vincent Bernat <bernat@luffy.cx>, Romain Beauxis <toots@rastageeks.org>
+Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.org>
 Build-Depends: debhelper (>= 5), quilt, patchutils (>= 0.2.25), cdbs (>= 0.4.27), po-debconf
 Homepage: http://www.roundcube.net/
 Standards-Version: 3.7.3
index c85dc7024da11db032e7dbff1dbe18af958fe1bb..4914ae781e81e2b8bce6a49acb88796fa1eb20e3 100644 (file)
@@ -10,30 +10,31 @@ db_go || true
 # Retrieve all available languages
 instd_langs=$(echo /usr/share/roundcube/program/localization/*/messages.inc | \
     sed 's+[^ ]*/\([^ ]*\)/messages.inc+\1,+g' | sed 's+,$++')
-# Retrieve the old list
-db_metaget roundcube/language languages && oldchoices="$RET"
-if [ ! "$oldchoices" ] || [ "$instd_langs" != "$oldchoices" ]; then
-       db_subst roundcube/language languages $instd_langs
-       db_fset roundcube/language seen false
-       # Firs try to get the current choice in case of preseeding
-       db_get roundcube/language || true
-       locale="$RET"
-       if [ -n $locale -a -d /usr/share/roundcube/program/localization/$locale ]; then
-          db_set roundcube/language $locale
-       else
-              # Try to guess the locale
-              locale=$(echo $LANG | sed 's/[@\.].*//')
-              if [ -d /usr/share/roundcube/program/localization/$locale ]; then
-                             db_set roundcube/language $locale
-             else
-                     locale=$(echo $locale | sed 's/_.*//')
-                     if [ -d /usr/share/roundcube/program/localization/$locale ]; then
-                             db_set roundcube/language $locale
-                     else
-                             db_set roundcube/language en_US
-                     fi
-             fi
-       fi
+db_subst roundcube/language languages $instd_langs
+# First try to get the current choice in case of preseeding or if the
+# question has already been asked
+db_get roundcube/language || true
+locale="$RET"
+if [ -n "$locale" -a -d "/usr/share/roundcube/program/localization/$locale" ]; then
+    # We get our answer (db_set should be useless in fact)
+    db_set roundcube/language $locale
+else 
+    # Either we never answered the question or the locale does not
+    # exist any more. In both cases, we do as if we never seen the
+    # question.
+    db_fset roundcube/language seen false
+    # Try to guess the locale
+    locale=$(echo $LANG | sed 's/[@\.].*//')
+    if [ -d /usr/share/roundcube/program/localization/$locale ]; then
+               db_set roundcube/language $locale
+    else
+       locale=$(echo $locale | sed 's/_.*//')
+       if [ -d /usr/share/roundcube/program/localization/$locale ]; then
+           db_set roundcube/language $locale
+       else
+           db_set roundcube/language en_US
+       fi
+    fi
 fi
 # Ask the question
 db_input medium roundcube/language || true