summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {