From 45ffed24cc896afaac710cf89149cd441361c171 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 14 Apr 2018 18:32:23 +0200 Subject: packages/pkginfo.php: show install_target also for virtual dependencies with only one matching item --- packages/pkginfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages') 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 "not satisfiable dependency: \"" . $dep["install_target"] . "\"\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 " ("; }; -- cgit v1.2.3-70-g09d2