[Debian-l10n-commits] r2021 - in /pootle/trunk/debian: NEWS changelog pootle.postinst
nekral-guest at users.alioth.debian.org
nekral-guest at users.alioth.debian.org
Sun Dec 6 15:57:07 UTC 2009
Author: nekral-guest
Date: Sun Dec 6 15:57:06 2009
New Revision: 2021
URL: http://svn.debian.org/wsvn/?sc=1&rev=2021
Log:
* debian/pootle.postinst: Fix import of project. The project directories
need to be moved from /var/lib/pootle to /var/lib/pootle/po
* debian/NEWS: Warn about this move of data files.
Added:
pootle/trunk/debian/NEWS
Modified:
pootle/trunk/debian/changelog
pootle/trunk/debian/pootle.postinst
Added: pootle/trunk/debian/NEWS
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/NEWS?rev=2021&op=file
==============================================================================
--- pootle/trunk/debian/NEWS (added)
+++ pootle/trunk/debian/NEWS Sun Dec 6 15:57:06 2009
@@ -1,0 +1,8 @@
+pootle (2.0.0~rc1-1) UNRELEASED; urgency=low
+
+ * Starting from version 2.0.0, the projects' translation files are stored in
+ /var/lib/pootle/po instead of /var/lib/pootle. The project directories
+ should be moved automatically when you update the pootle package, but you
+ may have to update manually any link to these directories.
+
+ -- Nicolas FRANCOIS (Nekral) <nicolas.francois at centraliens.net> Sun, 06 Dec 2009 16:30:22 +0100
Modified: pootle/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/changelog?rev=2021&op=diff
==============================================================================
--- pootle/trunk/debian/changelog (original)
+++ pootle/trunk/debian/changelog Sun Dec 6 15:57:06 2009
@@ -3,8 +3,11 @@
* New upstream release
* debian/patches/import_old_config.patch: Disabled. Bug fixed upstream and
import of activation keys is not necessary.
-
- -- Nicolas FRANCOIS (Nekral) <nicolas.francois at centraliens.net> Sat, 21 Nov 2009 15:20:16 +0100
+ * debian/pootle.postinst: Fix import of project. The project directories
+ need to be moved from /var/lib/pootle to /var/lib/pootle/po
+ * debian/NEWS: Warn about this move of data files.
+
+ -- Nicolas FRANCOIS (Nekral) <nicolas.francois at centraliens.net> Sun, 06 Dec 2009 16:33:13 +0100
pootle (1.3.0~beta3-1) UNRELEASED; urgency=low
Modified: pootle/trunk/debian/pootle.postinst
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/pootle.postinst?rev=2021&op=diff
==============================================================================
--- pootle/trunk/debian/pootle.postinst (original)
+++ pootle/trunk/debian/pootle.postinst Sun Dec 6 15:57:06 2009
@@ -60,12 +60,22 @@
case "$1" in
configure)
if [ -z "$2" ]; then
- cd /var/lib/pootle
sudo -u pootle django-admin syncdb --settings pootle.settings --noinput
sudo -u pootle django-admin initdb --settings pootle.settings
sudo -u pootle django-admin refresh_stats --settings pootle.settings
# createsuperuser ? => use debconf for this
elif dpkg --compare-versions "$2" lt 1.3.0~beta3-1; then
+ cd /var/lib/pootle
+ for d in *; do
+ case "$d" in
+ dbs|po|pootle|terminology|tutorial)
+ ;;
+ *)
+ echo "Moving /var/lib/pootle/$d to /var/lib/pootle/po/$d"
+ mv "$d" po/
+ ;;
+ esac
+ done
sudo -u pootle django-admin syncdb --settings pootle.settings --noinput
sudo -u pootle django-admin initdb --settings pootle.settings
sudo -u pootle python /usr/share/pyshared/pootle/tools/import_old_prefs.py \
More information about the Debian-l10n-commits
mailing list