summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-10-18 00:12:21 +0200
committerThomas Bächler <thomas@archlinux.org>2009-10-18 00:12:21 +0200
commit3441c1106c5b89e4d23f880dc0e2acf589c12b81 (patch)
tree6f0a4502eb0272e96e1b0aa29de82976a6198365 /main
parent71d79f133b8b656f93573569f65a9eab052f0d3f (diff)
Adjust SVN links to the WebSVN URL scheme
Diffstat (limited to 'main')
-rw-r--r--main/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/models.py b/main/models.py
index 3ab2c368..f645804b 100644
--- a/main/models.py
+++ b/main/models.py
@@ -257,17 +257,17 @@ class Package(models.Model):
return deps
def get_svn_link(self):
- linkbase = "http://repos.archlinux.org/viewvc.cgi/%s/repos/%s-%s/%s"
+ linkbase = "http://repos.archlinux.org/wsvn/%s/%s/repos/%s-%s/"
if self.pkgbase:
dirname = self.pkgbase
else:
dirname = self.pkgname
repo = self.repo.name.lower()
if repo.startswith('community'):
- rootopt = '?root=community'
+ root = 'community'
else:
- rootopt = '?root=packages'
- return linkbase % (dirname, repo, self.arch.name, rootopt)
+ root = 'packages'
+ return linkbase % (root, dirname, repo, self.arch.name)
class Signoff(models.Model):