summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-15 16:19:09 +0200
committerErich Eckner <git@eckner.net>2018-04-15 16:19:09 +0200
commit00c50ba7e3e57cd639c7e724038e4017794190f1 (patch)
tree37c464e3a26e89a880f07d35b289066840830340 /packages
parenta6ca7ead5c366bfa02dfa8c21077fe1e84b06957 (diff)
downloadarchweb32-00c50ba7e3e57cd639c7e724038e4017794190f1.tar.xz
packages/pkginfo.php: no link for virtual repositories
Diffstat (limited to 'packages')
-rw-r--r--packages/pkginfo.php13
1 files changed, 10 insertions, 3 deletions
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";