index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-04-15 16:19:09 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-15 16:19:09 +0200 |
commit | 00c50ba7e3e57cd639c7e724038e4017794190f1 (patch) | |
tree | 37c464e3a26e89a880f07d35b289066840830340 /packages | |
parent | a6ca7ead5c366bfa02dfa8c21077fe1e84b06957 (diff) |
-rw-r--r-- | packages/pkginfo.php | 13 |
diff --git a/packages/pkginfo.php b/packages/pkginfo.php index a5d9596..3b31a71 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -205,6 +205,7 @@ "SELECT " . "`binary_packages`.`pkgname` AS `pkgname`," . "`repositories`.`name` AS `repo`," . + "`repositories`.`is_on_master_mirror`," . "`architectures`.`name` AS `arch`," . "CONCAT(" . "IF(`binary_packages`.`epoch`=\"0\",\"\",CONCAT(`binary_packages`.`epoch`,\":\"))," . @@ -342,9 +343,15 @@ if (count($elsewhere)>0) { print "<h4>Versions Elsewhere</h4>\n"; foreach ($elsewhere as $subst) { print "<ul>\n"; - print "<li><a href=\"/" . $subst["repo"] . "/" . $subst["arch"] . "/" . $subst["pkgname"] ."/\""; - print " title=\"Package details for " . $subst["pkgname"] ."\">"; - print $subst["pkgname"] . "-" . $subst["version"] . " [" . $subst["repo"] . "] (" . $subst["arch"] . ")</a></li>\n"; + print "<li>"; + if ($subst["is_on_master_mirror"]) { + print "<a href=\"/" . $subst["repo"] . "/" . $subst["arch"] . "/" . $subst["pkgname"] ."/\""; + print " title=\"Package details for " . $subst["pkgname"] ."\">"; + } + print $subst["pkgname"] . "-" . $subst["version"] . " [" . $subst["repo"] . "] (" . $subst["arch"] . ")"; + if ($subst["is_on_master_mirror"]) + print "</a>"; + print "</li>\n"; print "</ul>\n"; } print "</div>\n"; |