summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-12 10:25:37 +0100
committerRemi Collet <remi@remirepo.net>2020-03-12 10:25:37 +0100
commitaeee90d0196b94f23358a0410a8742d13908abe7 (patch)
treee3542ac098cb59946106ffee2da8e98d0a5a4b0c /examples
parent017e18c8d0dd45074423f0ac08191d7456bf710b (diff)
use upstream name and expose all RPMTAG_*
Diffstat (limited to 'examples')
-rw-r--r--examples/librpm.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/librpm.php b/examples/librpm.php
index 3106b8b..98a7f8d 100644
--- a/examples/librpm.php
+++ b/examples/librpm.php
@@ -137,9 +137,9 @@ class Package extends Common {
**/
function WhatProvides($crit) {
if (file_exists($crit)) {
- $a = \rpmdbsearch($crit, RPM_TAG_INSTFILENAMES);
+ $a = \rpmdbsearch($crit, RPMTAG_INSTFILENAMES);
} else {
- $a = \rpmdbsearch($crit, RPM_TAG_PROVIDES);
+ $a = \rpmdbsearch($crit, RPMTAG_PROVIDES);
}
$r = [];
if (is_array($a)) {
@@ -157,7 +157,7 @@ function WhatProvides($crit) {
* print_r($a[0]->NEVRA);
**/
function WhatRequires($crit) {
- $a = \rpmdbsearch($crit, RPM_TAG_REQUIRES);
+ $a = \rpmdbsearch($crit, RPMTAG_REQUIRES);
$r = [];
if (is_array($a)) {