From 3e98e199a1a9baa6abdfcc8c8efe565475cabcb9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 14 Apr 2018 18:34:17 +0200 Subject: packages/pkginfo.php: add closing bracket ;-) --- packages/pkginfo.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 805e1ab..2429975 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -393,8 +393,11 @@ if (count($elsewhere)>0) { if (count($dep["deps"]) == 0) { print "not satisfiable dependency: \"" . $dep["install_target"] . "\"\n"; } else { - if ((count($dep["deps"]) > 1) || - (array_values($dep["deps"])[0]["pkgname"] != $dep["install_target"])) { + $virtual_dep = ( + (count($dep["deps"]) > 1) || + (array_values($dep["deps"])[0]["pkgname"] != $dep["install_target"]) + ); + if ($virtual_dep) { print $dep["install_target"]; print " ("; }; @@ -406,7 +409,7 @@ if (count($elsewhere)>0) { print "".$d_p["pkgname"].""; } - if (count($dep["deps"])>1) + if ($virtual_dep) print ")"; print "\n"; }; -- cgit v1.2.3-70-g09d2