Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-03 14:18:23 +0100
committerErich Eckner <git@eckner.net>2020-01-03 14:18:23 +0100
commite185c0c4d3fff5cc5de297a38f4b7d9d55f29ae0 (patch)
tree742370d6d8d42e2be95bf54fd62335c78c687d86 /packages/pkginfo.php
parentd235ae28781ae5c35b48b2ee462e6f1f9219d428 (diff)
pkginfo.php: add compression suffix from the database
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 5e3b832..b4dce77 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -79,6 +79,7 @@ require_once BASE . "/lib/style.php";
"`repositories`.`name` AS `repo`," .
"`r_a`.`name` AS `repo_arch`," .
"`architectures`.`name` AS `arch`," .
+ "`compressions`.`suffix`," .
"`git_repositories`.`name` AS `git_repo`," .
"`package_sources`.`uses_upstream`," .
"`package_sources`.`uses_modification`," .
@@ -86,6 +87,7 @@ require_once BASE . "/lib/style.php";
"`sr`.`name` AS `stable_repo`" .
" FROM `binary_packages`" .
mysql_join_binary_packages_architectures() .
+ mysql_join_binary_packages_compressions() .
mysql_join_binary_packages_binary_packages_in_repositories() .
mysql_join_binary_packages_in_repositories_repositories() .
mysql_join_repositories_repository_stabilities() .
@@ -455,8 +457,8 @@ require_once BASE . "/lib/style.php";
</li>
<li>
<a href="http://pool.mirror.archlinux32.org/<?php
- print $content["repo_arch"]."/".$content["repo"]."/".$content["pkgname"]."-".$content["version"]."-".$content["arch"];
-?>.pkg.tar.xz" rel="nofollow" title="Download <?php print $content["pkgname"]; ?> from mirror">Download From Mirror</a>
+ print $content["repo_arch"]."/".$content["repo"]."/".$content["pkgname"]."-".$content["version"]."-".$content["arch"].".pkg.".$content["suffix"];
+?>" rel="nofollow" title="Download <?php print $content["pkgname"]; ?> from mirror">Download From Mirror</a>
</li>
</ul>
</div>