[Debian-l10n-commits] r2765 - /pootle/trunk/debian/pootle.config
themill-guest at users.alioth.debian.org
themill-guest at users.alioth.debian.org
Wed Nov 16 16:08:03 UTC 2011
Author: themill-guest
Date: Wed Nov 16 16:08:02 2011
New Revision: 2765
URL: http://svn.debian.org/wsvn/?sc=1&rev=2765
Log:
Prefer sqlite db backend if upgrading
Modified:
pootle/trunk/debian/pootle.config
Modified: pootle/trunk/debian/pootle.config
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/pootle.config?rev=2765&op=diff
==============================================================================
--- pootle/trunk/debian/pootle.config (original)
+++ pootle/trunk/debian/pootle.config Wed Nov 16 16:08:02 2011
@@ -7,12 +7,17 @@
POOTLE_HOME=/var/lib/pootle
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
+ if [ -f /var/lib/pootle/dbs/pootle.db ]; then
+ # if there is an existing sqlite installation then prefer that option
+ dbc_dbtypes="sqlite3, mysql, pgsql"
+ else
dbc_dbtypes="mysql, pgsql, sqlite3"
- dbc_authmethod_user="password"
- dbc_first_version="2.0.5-2"
- dbc_basepath=$POOTLE_HOME/dbs
- . /usr/share/dbconfig-common/dpkg/config
- dbc_go pootle $@
+ fi
+ dbc_authmethod_user="password"
+ dbc_first_version="2.0.5-2"
+ dbc_basepath=$POOTLE_HOME/dbs
+ . /usr/share/dbconfig-common/dpkg/config
+ dbc_go pootle $@
fi
if [ -d "$POOTLE_HOME" ]; then
More information about the Debian-l10n-commits
mailing list