index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-04-23 10:40:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-23 10:40:25 +0200 |
commit | 935368dba516496e93ac112b3497fd8bc96dfea1 (patch) | |
tree | 6dfe05aa24fe87275862f24977bfa5ff3c6d630f /packages | |
parent | 7cb27416f0a36d3dfd784561d2f08860a7897531 (diff) |
-rw-r--r-- | packages/pkginfo.php | 14 |
diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 333f3a1..eef06da 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -130,7 +130,7 @@ ", ", array_diff( array_merge($dep_it,$js_dep), - array_intersect($dep_it,$js_dep) + $dep_it ) ); @@ -141,6 +141,16 @@ "json: " . implode(", ",$js_dep) ); + foreach ($dependencies as $key => $dep) { + if ($dep["dependency_type"]!="run") { + $dependencies[$key]["json"]="not required"; + continue; + } + foreach ($js_dep as $js) + if ($js == preg_replace("/[<=>].*$/","",$dep["install_target"])) + $dependencies[$key]["json"]=$js; + } + // query dependent packages $mysql_result = mysql_run_query( @@ -453,6 +463,8 @@ if (count($elsewhere)>0) { <?php foreach ($dependencies as $dep) { print " <li>\n"; + if (!isset ($dep["json"])) + print " (in database only)\n"; if (count($dep["deps"]) == 0) { print " <font color=\"#ff0000\">not satisfiable dependency: \"" . $dep["install_target"] . "\"</font>\n"; } else { |