summaryrefslogtreecommitdiffstats
path: root/rpminfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpminfo.c')
-rw-r--r--rpminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpminfo.c b/rpminfo.c
index 83e270d..53e4c6a 100644
--- a/rpminfo.c
+++ b/rpminfo.c
@@ -267,7 +267,7 @@ PHP_FUNCTION(rpmdbinfo)
rpmtsOpenDB(ts, O_RDONLY);
db = rpmtsGetRdb(ts);
- di = rpmdbInitIterator(db, RPMTAG_NAME, name, len);
+ di = rpmdbInitIterator(db, RPMDBI_LABEL, name, len);
if (!di) {
// Not found
rpmtsCloseDB(ts);