summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-04-10 04:19:19 +0200
committerpjmattal <pjmattal>2005-04-10 04:19:19 +0200
commitb78a20c3359fab4cf042e6e5e56bb9d5d3c0449a (patch)
tree67c6e2a4dc6e89e4f0009acb1492fdd3f27c8c55 /web
parent108dc557ba9f5043494264c1ff3b71a4bc77bc01 (diff)
downloadaur-b78a20c3359fab4cf042e6e5e56bb9d5d3c0449a.tar.gz
aur-b78a20c3359fab4cf042e6e5e56bb9d5d3c0449a.tar.xz
fixed bugs in tupkgupdate
made link to CVS for package files in community go to CURRENT tag
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index b5428dde..365f05ac 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -323,7 +323,11 @@ function package_details($id=0) {
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><span class='f3'>";
- print "<a href='".$row['URLPath']."'>Tarball</a> :: <a href='".dirname($row['URLPath'])."/".$row['Name']."'>Files</a></span></td>";
+ if ($row["LocationID"] == 2) {
+ print "<a href='".$row['URLPath']."'>Tarball</a> :: <a href='".dirname($row['URLPath'])."/".$row['Name']."'>Files</a></span></td>";
+ } elseif ($row["LocationID"] == 3) {
+ print "<a href='http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/" . $row["Category"] . "/" . $row["Name"] . "/?cvsroot=AUR&only_with_tag=CURRENT'>CVS</td>";
+ }
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><img src='/images/pad.gif' height='30'></td>";