summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-23 10:40:13 +0200
committerErich Eckner <git@eckner.net>2018-04-23 10:40:25 +0200
commit935368dba516496e93ac112b3497fd8bc96dfea1 (patch)
tree6dfe05aa24fe87275862f24977bfa5ff3c6d630f /packages/pkginfo.php
parent7cb27416f0a36d3dfd784561d2f08860a7897531 (diff)
downloadarchweb32-935368dba516496e93ac112b3497fd8bc96dfea1.tar.xz
packages/pkginfo.php: do not fail if mysql has too many dependencies (they're ugly to detect) - rather print a warning on the respective dependency
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php14
1 files changed, 13 insertions, 1 deletions
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 {