summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/views.py3
-rw-r--r--templates/packages/details.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/views.py b/packages/views.py
index 2ea444a6..e17a4d40 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -50,8 +50,9 @@ def details(request, name='', repo='', arch=''):
if all([name, repo, arch]):
pkg= get_object_or_404(Package,
pkgname=name, repo__name__iexact=repo, arch__name=arch)
+ rootopt = '?root=community' if repo == 'community' else ''
return render_to_response('packages/details.html', RequestContext(
- request, {'pkg': pkg}))
+ request, {'pkg': pkg, 'rootopt': rootopt}))
else:
return HttpResponseRedirect("/packages/?arch=%s&repo=%s&q=%s" % (
arch.lower(), repo.title(), name))
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 3a69bf2e..71218ead 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -7,7 +7,7 @@
<h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2>
<div style="float:right" class="listing">
<ul class="small">
- <li><a href="http://repos.archlinux.org/viewvc.cgi/{{ pkg.pkgname }}/repos/{{ pkg.repo.name|lower }}-{{ pkg.arch.name|lower }}/">View SVN Entries</a></li>
+ <li><a href="http://repos.archlinux.org/viewvc.cgi/{{ pkg.pkgname }}/repos/{{ pkg.repo.name|lower }}-{{ pkg.arch.name|lower }}/{{ rootopt }}">View SVN Entries</a></li>
<!-- <li><a href="/packages/files/{{ pkg.id }}/">View File List</a></li> -->
{% if pkg.needupdate %}
<li>