[arch-commits] Commit in translate-toolkit/trunk (PKGBUILD fix-locale.patch)
Andrea Scarpino
andrea at archlinux.org
Thu Jan 12 07:59:43 UTC 2012
Date: Thursday, January 12, 2012 @ 02:59:42
Author: andrea
Revision: 146506
upgpkg: translate-toolkit 1.9.0-2
Fix locale bug (FS#27907); add missing optional dependence (FS#27774)
Added:
translate-toolkit/trunk/fix-locale.patch
Modified:
translate-toolkit/trunk/PKGBUILD
------------------+
PKGBUILD | 9 ++++++---
fix-locale.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-01-12 07:55:40 UTC (rev 146505)
+++ PKGBUILD 2012-01-12 07:59:42 UTC (rev 146506)
@@ -5,14 +5,17 @@
pkgname=translate-toolkit
pkgver=1.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="A toolkit to convert between various different translation formats, help process and validate localisations"
arch=('any')
url="http://translate.sourceforge.net/wiki/toolkit/index"
license=('GPL')
depends=('bash' 'python-lxml')
-source=("http://downloads.sourceforge.net/translate/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('6106bb27887a77c056bfa7d2fd89204d')
+optdepends=('python2-iniparse: to use ini2po script')
+source=("http://downloads.sourceforge.net/translate/${pkgname}-${pkgver}.tar.bz2"
+ 'fix-locale.patch')
+md5sums=('6106bb27887a77c056bfa7d2fd89204d'
+ 'dc40fb26dd7905800abafad9041d98f3')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
Added: fix-locale.patch
===================================================================
--- fix-locale.patch (rev 0)
+++ fix-locale.patch 2012-01-12 07:59:42 UTC (rev 146506)
@@ -0,0 +1,28 @@
+Index: storage/statsdb.py
+===================================================================
+--- storage/statsdb.py (revision 17950)
++++ storage/statsdb.py (working copy)
+@@ -468,9 +468,10 @@
+ unconditionally."""
+ self.cur.execute("""DELETE FROM files WHERE
+ path=?;""", (realpath,))
+- self.cur.execute("""INSERT INTO files
++ self.cur.execute("""iNSERT INTO files
+ (fileid, path, st_mtime, st_size, toolkitbuild) values (NULL, ?, ?, ?, ?);""",
+ (realpath, mod_info[0], mod_info[1], toolkitversion.build))
++ # Unusual capitalisation intended. See bug 2073.
+ fileid = self.cur.lastrowid
+ self.cur.execute("""DELETE FROM units WHERE
+ fileid=?""", (fileid,))
+@@ -628,9 +629,10 @@
+ configid = self._getstoredcheckerconfig(checker)
+ if configid:
+ return configid
+- self.cur.execute("""INSERT INTO checkerconfigs
++ self.cur.execute("""iNSERT INTO checkerconfigs
+ (configid, config) values (NULL, ?);""",
+ (str(checker.config.__dict__),))
++ # Unusual capitalisation intended. See bug 2073.
+ return self.cur.lastrowid
+
+ def filechecks(self, filename, checker, store=None):
More information about the arch-commits
mailing list