summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2009-09-11 18:48:52 -0600
committerDusty Phillips <buchuki@gmail.com>2009-09-11 18:48:52 -0600
commite3ea5232732f442f75a372714b64e1c119c1be7c (patch)
tree168cc6022ad9a9894d856dffa070f02f00bc00b6 /packages/views.py
parent499bb4aca784874db84aa8ddc7e21627249cdb26 (diff)
Fix community links.
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py3
1 files changed, 2 insertions, 1 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))