1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

deskutils/zim: fix runtime with sqlite >= 3.41.0

Fix submitted in upstream PR:
https://github.com/zim-desktop-wiki/zim-desktop-wiki/pull/2640

Local patch should be removed after new zim release.

PR:		280355
Reported by:	denverh@comcast.net
This commit is contained in:
Ruslan Makhmatkhanov 2024-07-21 23:33:23 +03:00
parent 0b5f94278e
commit e82618c504
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= zim
DISTVERSION= 0.75.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= deskutils python
MASTER_SITES= https://www.zim-wiki.org/downloads/

View File

@ -0,0 +1,14 @@
https://github.com/zim-desktop-wiki/zim-desktop-wiki/pull/2640
--- zim/notebook/index/__init__.py.orig 2021-11-29 13:46:48 UTC
+++ zim/notebook/index/__init__.py
@@ -138,7 +138,8 @@ class Index(SignalEmitter):
def _db_init(self):
tables = [r[0] for r in self._db.execute(
'SELECT name FROM sqlite_master '
- 'WHERE type="table" and name NOT LIKE "sqlite%"'
+ 'WHERE type=? and name NOT LIKE ?',
+ ('table', 'sqlite%')
)]
for table in tables:
self._db.execute('DROP TABLE %s' % table)