diff options
author | Erich Eckner <git@eckner.net> | 2018-04-14 18:32:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-14 18:32:23 +0200 |
commit | 45ffed24cc896afaac710cf89149cd441361c171 (patch) | |
tree | d7a1d3c70bedcd5667aa91caa08bab0dc7d07d79 /packages | |
parent | 001e3a5e7ec38cb6ed76f39c4ee1073b41ce6ddc (diff) | |
download | archweb32-45ffed24cc896afaac710cf89149cd441361c171.tar.xz |
packages/pkginfo.php: show install_target also for virtual dependencies with only one matching item
Diffstat (limited to 'packages')
-rw-r--r-- | packages/pkginfo.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 20d93c9..805e1ab 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -393,7 +393,8 @@ if (count($elsewhere)>0) { if (count($dep["deps"]) == 0) { print "<font color=\"#ff0000\">not satisfiable dependency: \"" . $dep["install_target"] . "\"</font>\n"; } else { - if (count($dep["deps"]) > 1) { + if ((count($dep["deps"]) > 1) || + (array_values($dep["deps"])[0]["pkgname"] != $dep["install_target"])) { print $dep["install_target"]; print " <span class=\"virtual-dep\">("; }; |