packages: trac-plugin-tags/pysqlite.patch (NEW) - move db.cursor() in prope...

zbyniu zbyniu at pld-linux.org
Fri Sep 10 23:35:01 CEST 2010


Author: zbyniu                       Date: Fri Sep 10 21:35:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- move db.cursor() in proper place

---- Files affected:
packages/trac-plugin-tags:
   pysqlite.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/trac-plugin-tags/pysqlite.patch
diff -u /dev/null packages/trac-plugin-tags/pysqlite.patch:1.1
--- /dev/null	Fri Sep 10 23:35:01 2010
+++ packages/trac-plugin-tags/pysqlite.patch	Fri Sep 10 23:34:56 2010
@@ -0,0 +1,14 @@
+--- tagsplugin/tags/0.6/tractags/model.py~	2008-01-16 06:47:04.000000000 +0100
++++ tagsplugin/tags/0.6/tractags/model.py	2008-09-13 22:23:00.757555548 +0200
+@@ -20,10 +20,10 @@ class TagModelProvider(Component):
+         self._upgrade_db(self.env.get_db_cnx())
+ 
+     def environment_needs_upgrade(self, db):
+-        cursor = db.cursor()
+         if self._need_migration(db):
+             return True
+         try:
++            cursor = db.cursor()
+             cursor.execute("select count(*) from tags")
+             cursor.fetchone()
+             return False
================================================================


More information about the pld-cvs-commit mailing list