summaryrefslogtreecommitdiffstats
path: root/examples/librpm.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-12 09:57:27 +0100
committerRemi Collet <remi@remirepo.net>2020-03-12 09:57:27 +0100
commit017e18c8d0dd45074423f0ac08191d7456bf710b (patch)
tree1509f14b16d708a759dd5aa1c9ffb2252ed4ed04 /examples/librpm.php
parent9f57ac556bfaee4bda9189a49a47c7830e827d3e (diff)
mode dependency tags and drop EXPERIMENTAL
Diffstat (limited to 'examples/librpm.php')
-rw-r--r--examples/librpm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/librpm.php b/examples/librpm.php
index 16fdc78..3106b8b 100644
--- a/examples/librpm.php
+++ b/examples/librpm.php
@@ -139,7 +139,7 @@ function WhatProvides($crit) {
if (file_exists($crit)) {
$a = \rpmdbsearch($crit, RPM_TAG_INSTFILENAMES);
} else {
- $a = \rpmdbsearch($crit, RPM_TAG_PROVIDENAME);
+ $a = \rpmdbsearch($crit, RPM_TAG_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_REQUIRENAME);
+ $a = \rpmdbsearch($crit, RPM_TAG_REQUIRES);
$r = [];
if (is_array($a)) {