From 71d79f133b8b656f93573569f65a9eab052f0d3f Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sat, 17 Oct 2009 23:47:09 +0200 Subject: Port archweb_pub commit 1f96c7a1182ef75279c18986b708e683f89dd690 to archweb_dev. This is the original commit message by Dan: "Make package SVN links always work This should clean up the links for all varieties of things- different arches (including any), different repos (community and community-testing), and split packages. All of the logic is in one place now and any further changes should be made to the method on the package object." --- packages/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages/views.py') diff --git a/packages/views.py b/packages/views.py index e17a4d40..2390bd97 100644 --- a/packages/views.py +++ b/packages/views.py @@ -50,9 +50,8 @@ 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, 'rootopt': rootopt})) + request, {'pkg': pkg, })) else: return HttpResponseRedirect("/packages/?arch=%s&repo=%s&q=%s" % ( arch.lower(), repo.title(), name)) -- cgit v1.2.3-54-g00ecf