summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 13:08:18 +0200
committerErich Eckner <git@eckner.net>2018-04-17 13:08:18 +0200
commit336ca22abf7f14444185fe8543d7188a248b5a06 (patch)
treebc5c17fec5ebf90249f41f45a27838896714a110 /packages
parent19f894a289ef282c1f9b745f7502924984eeee06 (diff)
downloadarchweb32-336ca22abf7f14444185fe8543d7188a248b5a06.tar.xz
packages/pkginfo.php: remove links to Required Bys not on the master mirror
Diffstat (limited to 'packages')
-rw-r--r--packages/pkginfo.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index b347af7..ef7ddeb 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -147,6 +147,7 @@
"`dependency_types`.`name` AS `dependency_type`," .
"`install_targets`.`name` AS `install_target`," .
"`repositories`.`name` AS `repo`," .
+ "`repositories`.`is_on_master_mirror`," .
"`architectures`.`name` AS `arch`," .
"`binary_packages`.`pkgname`" .
" FROM `install_target_providers`" .
@@ -173,7 +174,13 @@
" AND `subst_rsr`.`more_stable`=" . $mysql_content["repo_stability"] .
")" .
" GROUP BY `binary_packages`.`id`,`dependency_types`.`id`" .
- " ORDER BY FIELD (`dependency_types`.`name`,\"run\",\"make\",\"check\",\"link\"), `install_targets`.`name`!=`binary_packages`.`pkgname`, `install_targets`.`name`, `binary_packages`.`pkgname`"
+ " ORDER BY" .
+ " FIELD (`dependency_types`.`name`,\"run\",\"make\",\"check\",\"link\")," .
+ " `install_targets`.`name`!=`binary_packages`.`pkgname`," .
+ " `install_targets`.`name`," .
+ " `binary_packages`.`pkgname`," .
+ " `repositories`.`stability`," .
+ " `repositories`.`name`"
);
$dependent = array();
@@ -468,8 +475,17 @@ if (count($elsewhere)>0) {
print " <li>\n";
if ($dep["install_target"] != $content["Name"])
print " ".$dep["install_target"] . " (\n";
- print " <a href=\"/".$dep["repo"]."/".$dep["arch"]."/".$dep["pkgname"]."/\" ";
- print "title=\"View package details for ".$dep["pkgname"]."\">".$dep["pkgname"]."</a>\n";
+ print " ";
+ if ($dep["is_on_master_mirror"]=="1") {
+ print "<a href=\"/".$dep["repo"]."/".$dep["arch"]."/".$dep["pkgname"]."/\" ";
+ print "title=\"View package details for ".$dep["pkgname"]."\">";
+ }
+ print $dep["pkgname"];
+ if ($dep["repo"] != $content["repo"])
+ print " [" . $dep["repo"] . "]";
+ if ($dep["is_on_master_mirror"]=="1")
+ print "</a>";
+ print "\n";
if ($dep["install_target"] != $content["Name"])
print " )\n";
if ($dep["dependency_type"] != "run")