Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-14 18:34:17 +0200
committerErich Eckner <git@eckner.net>2018-04-14 18:34:17 +0200
commit3e98e199a1a9baa6abdfcc8c8efe565475cabcb9 (patch)
treea0658232deec79ce8474dfa1282490709465258f /packages
parent45ffed24cc896afaac710cf89149cd441361c171 (diff)
packages/pkginfo.php: add closing bracket ;-)
Diffstat (limited to 'packages')
-rw-r--r--packages/pkginfo.php9
1 files 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 "<font color=\"#ff0000\">not satisfiable dependency: \"" . $dep["install_target"] . "\"</font>\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 " <span class=\"virtual-dep\">(";
};
@@ -406,7 +409,7 @@ if (count($elsewhere)>0) {
print "<a href=\"/".$d_p["repo"]."/".$d_p["arch"]."/".$d_p["pkgname"]."/\" ";
print "title=\"View package details for ".$d_p["pkgname"]."\">".$d_p["pkgname"]."</a>";
}
- if (count($dep["deps"])>1)
+ if ($virtual_dep)
print ")</span>";
print "\n";
};