From debec14b736162c65421ee1bace3adb049746ed4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 26 May 2010 10:47:43 -0500 Subject: 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 --- urls.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urls.py') diff --git a/urls.py b/urls.py index c52f6ab..8fe7d7d 100644 --- a/urls.py +++ b/urls.py @@ -52,6 +52,8 @@ urlpatterns = patterns('', 'packages.views.flag'), (r'^packages/(?P[A-z0-9\-]+)/(?P[A-z0-9]+)/(?P[A-z0-9\-+.]+)/unflag/$', 'packages.views.unflag'), + (r'^packages/(?P[A-z0-9\-]+)/(?P[A-z0-9]+)/(?P[A-z0-9\-+.]+)/download/$', + 'packages.views.download'), (r'^todo/(\d+)/$', 'todolists.views.view'), (r'^todo/add/$', 'todolists.views.add'), -- cgit v1.2.3-24-g4f1b