diff options
author | jbj <devnull@localhost> | 2000-03-26 22:45:02 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-03-26 22:45:02 +0000 |
commit | 22a911a3b36c9cde5159e0343632246ba9fa007c (patch) | |
tree | db7180d7fcca97a838fd246f2de2a332062ad895 /python/rpmmodule.c | |
parent | c47d8f3f6311435f60402a6230429a89bb7e23a4 (diff) | |
download | rpm-22a911a3b36c9cde5159e0343632246ba9fa007c.tar.gz rpm-22a911a3b36c9cde5159e0343632246ba9fa007c.tar.bz2 rpm-22a911a3b36c9cde5159e0343632246ba9fa007c.zip |
Add --preferdb for now to permit testing db0/db1/db2.
CVS patchset: 3641
CVS date: 2000/03/26 22:45:02
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r-- | python/rpmmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 1d79f219f..aaa684bdc 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -814,10 +814,10 @@ static PyObject * handleDbResult(int rc, dbiIndexSet matches) { list = PyList_New(0); if (!rc) { - for (i = 0; i < matches.count; i++) - PyList_Append(list, PyInt_FromLong(matches.recs[i].recOffset)); + for (i = 0; i < dbiIndexSetCount(matches); i++) + PyList_Append(list, PyInt_FromLong(dbiIndexRecordOffset(matches, i))); - dbiFreeIndexRecord(matches); + dbiFreeIndexSet(matches); } return list; |