summaryrefslogtreecommitdiffstats
path: root/rpminfo.c
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-13 08:43:41 +0100
committerRemi Collet <remi@remirepo.net>2020-03-13 08:43:41 +0100
commit4f467f39aeb02bb2a2f2df9c7a697601aca84db8 (patch)
tree5ee3d5be4020d6d4deadc319b542e98312cb4209 /rpminfo.c
parentcb84354da288ca88d3ad4f5757e44e8e7e004f41 (diff)
allow 'rpmdbinfo' to search on NEVR (instead of name only)
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);