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>2018-07-27 09:31:58 +0200
committerErich Eckner <git@eckner.net>2018-07-27 09:31:58 +0200
commita0c305ec1b70c0d5a8aad8a1d3b2477bc3a15bbe (patch)
tree510b29364a4c736f5634147046b656b146faced3 /packages/pkginfo.php
parent1a7538265f7a2748e8864c002e75e55cb8a270ba (diff)
git_url() new
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index b910266..3fa1e77 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -1,6 +1,7 @@
<?php
require_once "../init.php";
+require_once BASE . "/lib/helper.php";
require_once BASE . "/lib/mysql.php";
require_once BASE . "/lib/style.php";
@@ -283,17 +284,13 @@ require_once BASE . "/lib/style.php";
}
if ($content["uses_modification"]) {
print " <li>\n";
- print " <a href=\"https://git.archlinux32.org/archlinux32/packages/src/branch/master/";
- print $content["stable_repo"];
- print "/";
- print $content["pkgbase"];
+ print " <a href=\"";
+ print git_url("packages","tree","master",$content["stable_repo"]."/".$content["pkgbase"]);
print "\" title=\"View archlinux32's source files for ";
print $content["pkgname"];
print "\">Archlinux32's Source Files</a> /\n";
- print " <a href=\"https://git.archlinux32.org/archlinux32/packages/commits/branch/master/";
- print $content["stable_repo"];
- print "/";
- print $content["pkgbase"];
+ print " <a href=\"";
+ print git_url("packages","log","master",$content["stable_repo"]."/".$content["pkgbase"]);
print "\" title=\"View upstream's changes for ";
print $content["pkgname"];
print "\">Archlinux32's Changes</a>\n";