summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-26 10:47:43 -0500
committerDan McGee <dan@archlinux.org>2010-05-26 10:50:03 -0500
commitdebec14b736162c65421ee1bace3adb049746ed4 (patch)
tree1f532f8e36c2055ba0fb5d7372b72514b5fc6f5a /urls.py
parent5866498603eb8cc7d194bff39e01a45b11ba36d3 (diff)
downloadarchweb-debec14b736162c65421ee1bace3adb049746ed4.tar.gz
archweb-debec14b736162c65421ee1bace3adb049746ed4.zip
Add ability to download package from web interface
After adding filename to the database, this is a rather simple request (see FS#19546). Right now the "randomly" chosen mirror happens to always be mirrors.kernel.org as it is the only one filed under the 'Any' country which is what we screen on. Perhaps this logic could be improved in the future but I don't see these links being all that high traffic anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index c52f6abb..8fe7d7d9 100644
--- a/urls.py
+++ b/urls.py
@@ -52,6 +52,8 @@ urlpatterns = patterns('',
'packages.views.flag'),
(r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/unflag/$',
'packages.views.unflag'),
+ (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/download/$',
+ 'packages.views.download'),
(r'^todo/(\d+)/$', 'todolists.views.view'),
(r'^todo/add/$', 'todolists.views.add'),