summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/views.py2
-rw-r--r--urls.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/views.py b/packages/views.py
index 4491342f..10bf8766 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -32,7 +32,7 @@ def update(request):
len(ids), mode))
return HttpResponseRedirect('/packages/search/')
-def details(request, pkgid=0, name='', repo='', arch=''):
+def details(request, name='', repo='', arch=''):
if pkgid != 0:
pkg = get_object_or_404(Package, id=pkgid)
elif all([name, repo, arch]):
diff --git a/urls.py b/urls.py
index a41bcc3d..39f63bea 100644
--- a/urls.py
+++ b/urls.py
@@ -18,8 +18,7 @@ urlpatterns = patterns('',
(r'^packages/search/$', 'archweb_dev.packages.views.search'),
(r'^packages/search/(?P<page>\d+)/$', 'archweb_dev.packages.views.search'),
(r'^packages/update/$', 'archweb_dev.packages.views.update'),
- (r'^packages/(?P<pkgid>\d+)/$', 'archweb_dev.packages.views.details'),
- (r'^packages/(?P<name>[A-z0-9]+)/$', 'archweb_dev.packages.views.details'),
+ (r'^packages/(?P<name>[A-z0-9\-+.]+)/$', 'archweb_dev.packages.views.details'),
(r'^packages/(?P<repo>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/$',
'archweb_dev.packages.views.details'),
(r'^packages/(?P<repo>[A-z0-9]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/$',