From 017e18c8d0dd45074423f0ac08191d7456bf710b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 12 Mar 2020 09:57:27 +0100 Subject: mode dependency tags and drop EXPERIMENTAL --- examples/librpm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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)) { -- cgit