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>2018-04-14 18:32:23 +0200
committerErich Eckner <git@eckner.net>2018-04-14 18:32:23 +0200
commit45ffed24cc896afaac710cf89149cd441361c171 (patch)
treed7a1d3c70bedcd5667aa91caa08bab0dc7d07d79
parent001e3a5e7ec38cb6ed76f39c4ee1073b41ce6ddc (diff)
packages/pkginfo.php: show install_target also for virtual dependencies with only one matching item
-rw-r--r--packages/pkginfo.php3
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\">(";
};