1 |
--- yum-metadata-parser-1.1.0/sqlitecachec.py.dbversion 2007-05-15 13:05:46.000000000 -0400 |
2 |
+++ yum-metadata-parser-1.1.0/sqlitecachec.py 2007-05-15 13:05:02.000000000 -0400 |
3 |
@@ -18,6 +18,8 @@ |
4 |
import sqlite |
5 |
import _sqlitecache |
6 |
|
7 |
+DBVERSION = _sqlitecache.DBVERSION |
8 |
+ |
9 |
class RepodataParserSqlite: |
10 |
def __init__(self, storedir, repoid, callback=None): |
11 |
self.callback = callback |
12 |
--- yum-metadata-parser-1.1.0/sqlitecache.c.dbversion 2007-05-15 13:05:40.000000000 -0400 |
13 |
+++ yum-metadata-parser-1.1.0/sqlitecache.c 2007-05-15 13:04:43.000000000 -0400 |
14 |
@@ -609,5 +609,10 @@ |
15 |
PyMODINIT_FUNC |
16 |
init_sqlitecache (void) |
17 |
{ |
18 |
- Py_InitModule ("_sqlitecache", SqliteMethods); |
19 |
+ PyObject * m, * d; |
20 |
+ |
21 |
+ m = Py_InitModule ("_sqlitecache", SqliteMethods); |
22 |
+ |
23 |
+ d = PyModule_GetDict(m); |
24 |
+ PyDict_SetItemString(d, "DBVERSION", PyInt_FromLong(YUM_SQLITE_CACHE_DBVERSION)); |
25 |
} |