diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-13 08:43:41 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-13 08:43:41 +0100 |
commit | 4f467f39aeb02bb2a2f2df9c7a697601aca84db8 (patch) | |
tree | 5ee3d5be4020d6d4deadc319b542e98312cb4209 /rpminfo.c | |
parent | cb84354da288ca88d3ad4f5757e44e8e7e004f41 (diff) |
allow 'rpmdbinfo' to search on NEVR (instead of name only)
Diffstat (limited to 'rpminfo.c')
-rw-r--r-- | rpminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |