Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 11:29:41 +0100
committerErich Eckner <git@eckner.net>2019-01-21 11:29:41 +0100
commitf6d580ac95937df48bcc322032469828b9cc43e6 (patch)
treed2ca138fe92743e47bd409994e147f800762d11b
parent225fef295a1f6e9187c0ffc96eb85d8108ce89bb (diff)
packages/pkginfo.php: parse dependencies from json correctly
-rw-r--r--packages/pkginfo.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 83ea3bb..d495cf0 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -237,6 +237,8 @@ require_once BASE . "/lib/style.php";
$dep_it = preg_replace("/[<=>].*$/","",$dep_it);
if (array_key_exists("Depends On",$json_content))
$js_dep = preg_replace("/[<=>].*$/","",$json_content["Depends On"]);
+ elseif (array_key_exists("Requires",$json_content))
+ $js_dep = preg_replace("/[<=>].*$/","",$json_content["Requires"]);
else
$js_dep = array();
if (!is_array($js_dep))