summaryrefslogtreecommitdiff
path: root/python/rpmmodule.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-04-19 22:15:02 +0000
committerjbj <devnull@localhost>2000-04-19 22:15:02 +0000
commitf75d794af48cf4c1f24cbbd972bed3fc7153e610 (patch)
treece063d5cd1384ca49a97745454c1133f0b62169c /python/rpmmodule.c
parentdce2eccbd5b7a01605988df46580ec1ce2580f37 (diff)
downloadlibrpm-tizen-f75d794af48cf4c1f24cbbd972bed3fc7153e610.tar.gz
librpm-tizen-f75d794af48cf4c1f24cbbd972bed3fc7153e610.tar.bz2
librpm-tizen-f75d794af48cf4c1f24cbbd972bed3fc7153e610.zip
Change iterator interface to use RPMTAG_FOO rather than RPMDBI_FOO.
CVS patchset: 3687 CVS date: 2000/04/19 22:15:02
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r--python/rpmmodule.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index 84b71ca48..017cfa740 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -856,7 +856,7 @@ static PyObject * rpmdbByName(rpmdbObject * s, PyObject * args) {
return handleDbResult(rc, matches);
}
#else
- return handleDbResult(rpmdbInitIterator(s->db, RPMDBI_NAME, str, 0));
+ return handleDbResult(rpmdbInitIterator(s->db, RPMTAG_NAME, str, 0));
#endif
}
@@ -872,7 +872,7 @@ static PyObject * rpmdbByFile(rpmdbObject * s, PyObject * args) {
return handleDbResult(rc, matches);
}
#else
- return handleDbResult(rpmdbInitIterator(s->db, RPMDBI_FILE, str, 0));
+ return handleDbResult(rpmdbInitIterator(s->db, RPMTAG_BASENAMES, str, 0));
#endif
}
@@ -888,7 +888,7 @@ static PyObject * rpmdbByProvides(rpmdbObject * s, PyObject * args) {
return handleDbResult(rc, matches);
}
#else
- return handleDbResult(rpmdbInitIterator(s->db, RPMDBI_PROVIDES, str, 0));
+ return handleDbResult(rpmdbInitIterator(s->db, RPMTAG_PROVIDENAME, str, 0));
#endif
}
@@ -908,7 +908,8 @@ static int rpmdbLength(rpmdbObject * s) {
#else
{ rpmdbMatchIterator mi;
- mi = rpmdbInitIterator(s->db, RPMDBI_PACKAGES, NULL, 0);
+ /* RPMDBI_PACKAGES */
+ mi = rpmdbInitIterator(s->db, 0, NULL, 0);
/* XXX FIXME: unnecessary header mallocs are side effect here */
while (rpmdbNextIterator(mi) != NULL)
count++;