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:
parent
0b5f94278e
commit
e82618c504
@ -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/
|
||||
|
||||
|
14
deskutils/zim/files/patch-zim_notebook_index_____init____.py
Normal file
14
deskutils/zim/files/patch-zim_notebook_index_____init____.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user