diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/librpm.php | 4 |
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)) { |