rpmreaper/rpmreaper-0.1.6-rpmdbiter.patch
Miroslav Lichvar e44172bc14 0.1.6-5
- rebuild for new rpm
- use RPMDBI_PACKAGES index when iterating rpmdb (#671149)
2011-01-21 13:11:36 +01:00

20 lines
755 B
Diff

commit 97481d9548fff559b8f19d2f134a003c4fe3d526
Author: Miroslav Lichvar <mlichvar@redhat.com>
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;