summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorsimo <simo>2005-05-07 15:42:25 +0200
committersimo <simo>2005-05-07 15:42:25 +0200
commitf40e1fb77ddb36fd7d35b2ffedd4275db5068748 (patch)
tree565c474e5ae934ec668d67fb37aa75b72fb4df9f /web
parented17d0f69e3f8f88ed8f23ad12543022636fd87a (diff)
downloadaur-f40e1fb77ddb36fd7d35b2ffedd4275db5068748.tar.gz
aur-f40e1fb77ddb36fd7d35b2ffedd4275db5068748.tar.xz
Changed source links to work with CVS
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index b0e570fd..2deb2f3d 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -371,8 +371,13 @@ function package_details($id=0, $SID="") {
else
{
//It is presumably an internal source
- print "<a href='".dirname($row['URLPath'])."/".$row['Name'];
- print "/".$src."'>".$src."</a><br />\n";
+ if ($row["LocationID"] == 2) {
+ print "<a href='".dirname($row['URLPath'])."/".$row['Name'];
+ print "/".$src."'>".$src."</a><br />\n";
+ } elseif ($row["LocationID"] == 3) {
+ print "<a href='http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/".$row["Category"]."/".$row["Name"]."/".$src."/?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT'>"
+ print $src."</a><br />\n";
+ }
}
}
print "</td></tr>\n";