commit 97481d9548fff559b8f19d2f134a003c4fe3d526 Author: Miroslav Lichvar Date: Fri Jan 21 12:37:44 2011 +0100 use RPMDBI_PACKAGES tag when creating rpmdb iterator diff --git a/rpm.c b/rpm.c index 405974f..8f20cde 100644 --- a/rpm.c +++ b/rpm.c @@ -97,7 +97,7 @@ static int rpm_read(const struct repo *repo, struct pkgs *p, uint firstpid) { rpmtsSetRootDir(rd->ts, ((struct rpmrepodata *)repo->data)->root); rpmtsSetVSFlags(rd->ts, _RPMVSF_NOSIGNATURES | _RPMVSF_NODIGESTS); - iter = rpmtsInitIterator(rd->ts, RPMTAG_NAME, NULL, 0); + iter = rpmtsInitIterator(rd->ts, RPMDBI_PACKAGES, NULL, 0); for (pid = firstpid; (header = rpmdbNextIterator(iter)) != NULL; pid++) { #ifdef _RPM_4_4_COMPAT int i, ds1, ds2, ds3; commit 99455fd99fe541a15e6c7dcaab357fa89db038fb Author: Miroslav Lichvar Date: Mon Jan 31 17:31:48 2011 +0100 use RPMDBI_PACKAGES index also when reading provides diff --git a/rpm.c b/rpm.c index 8f20cde..230818b 100644 --- a/rpm.c +++ b/rpm.c @@ -192,7 +192,7 @@ static int rpm_read_provs(const struct repo *repo, struct pkgs *p, uint firstpid dirs = rpmtdNew(); dirindexes = rpmtdNew(); #endif - iter = rpmtsInitIterator(ts, RPMTAG_NAME, NULL, 0); + iter = rpmtsInitIterator(ts, RPMDBI_PACKAGES, NULL, 0); for (pid = firstpid; (header = rpmdbNextIterator(iter)) != NULL; pid++) { #ifdef _RPM_4_4_COMPAT