diff options
-rw-r--r-- | EXPERIMENTAL | 0 | ||||
-rw-r--r-- | examples/librpm.php | 4 | ||||
-rw-r--r-- | package.xml | 3 | ||||
-rw-r--r-- | rpminfo.c | 8 |
4 files changed, 9 insertions, 6 deletions
diff --git a/EXPERIMENTAL b/EXPERIMENTAL deleted file mode 100644 index e69de29..0000000 --- a/EXPERIMENTAL +++ /dev/null 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)) { diff --git a/package.xml b/package.xml index 2b3d729..14801b3 100644 --- a/package.xml +++ b/package.xml @@ -27,7 +27,7 @@ Available functions: <license>PHP 3.01</license> <notes> - add rpmdbsearch function to search packages using - name, owned files, requires, provides... + name, installed files, requires, provides... </notes> <contents> <dir name="/"> @@ -37,7 +37,6 @@ Available functions: <file name="rpminfo.c" role="src"/> <!-- documentation --> <file name="CREDITS" role="doc"/> - <file name="EXPERIMENTAL" role="doc"/> <file name="LICENSE" role="doc"/> <file name="README.md" role="doc"/> <dir name ="examples"> @@ -458,8 +458,12 @@ PHP_MINIT_FUNCTION(rpminfo) REGISTER_LONG_CONSTANT("RPM_TAG_NAME", RPMTAG_NAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("RPM_TAG_INSTFILENAMES", RPMTAG_INSTFILENAMES, CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("RPM_TAG_REQUIRENAME", RPMTAG_REQUIRENAME, CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("RPM_TAG_PROVIDENAME", RPMTAG_PROVIDENAME, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("RPM_TAG_REQUIRES", RPMTAG_REQUIRES, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("RPM_TAG_PROVIDES", RPMTAG_PROVIDES, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("RPM_TAG_RECOMMENDS", RPMTAG_RECOMMENDS, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("RPM_TAG_SUGGESTS", RPMTAG_SUGGESTS, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("RPM_TAG_ENHANCES", RPMTAG_ENHANCES, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("RPM_TAG_SUPPLEMENTS", RPMTAG_SUPPLEMENTS, CONST_CS | CONST_PERSISTENT); return SUCCESS; } |