From cb1c71bb973f65548f8713bbb353c6bcb5a848e1 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Tue, 21 Jul 2015 03:58:19 -0500 Subject: openchange-2.3-2: updating version --- .../openchange-provision-type-error.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pcr/openchange/openchange-provision-type-error.patch (limited to 'pcr/openchange/openchange-provision-type-error.patch') diff --git a/pcr/openchange/openchange-provision-type-error.patch b/pcr/openchange/openchange-provision-type-error.patch new file mode 100644 index 000000000..a7a2f7bad --- /dev/null +++ b/pcr/openchange/openchange-provision-type-error.patch @@ -0,0 +1,33 @@ +diff -Naurp openchange-openchange-2.3-VULCAN-org/python/openchange/mailbox.py openchange-openchange-2.3-VULCAN/python/openchange/mailbox.py +--- openchange-openchange-2.3-VULCAN-org/python/openchange/mailbox.py 2015-05-16 10:22:04.000000000 -0500 ++++ openchange-openchange-2.3-VULCAN/python/openchange/mailbox.py 2015-07-17 18:48:13.929579900 -0500 +@@ -498,7 +498,7 @@ class OpenChangeDBWithMysqlBackend(Mysql + def change_number(self): + if self._change_number is None: + cur = self._execute("SELECT change_number FROM servers WHERE id = %s", +- self.server_id) ++ (self.server_id,)) + data = cur.fetchone() + if data: + self._change_number = data[0] +diff -Naurp openchange-openchange-2.3-VULCAN-org/python/openchange/migration/__init__.py openchange-openchange-2.3-VULCAN/python/openchange/migration/__init__.py +--- openchange-openchange-2.3-VULCAN-org/python/openchange/migration/__init__.py 2015-05-16 10:22:04.000000000 -0500 ++++ openchange-openchange-2.3-VULCAN/python/openchange/migration/__init__.py 2015-07-17 18:49:02.877532654 -0500 +@@ -65,7 +65,7 @@ class MigrationManager(object): + """Create the table_name table if not exists + """ + cur = self.db.cursor() +- cur.execute("""SHOW TABLES LIKE %s""", self.table_name) ++ cur.execute("""SHOW TABLES LIKE %s""", (self.table_name,)) + row = cur.fetchone() + if row is None or row[0] is None: + cur.execute("""CREATE TABLE IF NOT EXISTS `{0}` ( +@@ -87,7 +87,7 @@ class MigrationManager(object): + if self._version[app] is None: + cur = self.db.cursor() + cur.execute('SELECT MAX(version) FROM {0} WHERE app = %s'.format(self.table_name), +- app) ++ (app,)) + row = cur.fetchone() + if row and row[0]: + self._version[app] = int(row[0]) -- cgit v1.2.3-2-g168b