summaryrefslogtreecommitdiffstats
path: root/packages/utils.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-07 14:39:01 -0500
committerDan McGee <dan@archlinux.org>2012-04-07 14:54:52 -0500
commitb5ab5b1e218219b09857b06f88e522bccb4b5600 (patch)
treef13a9acdad6c46ccf314f2f36870220bd5caa821 /packages/utils.py
parent1a2f117037fd8b01ec1e1e3cce5186d7bfac1a78 (diff)
downloadarchweb-b5ab5b1e218219b09857b06f88e522bccb4b5600.tar.gz
archweb-b5ab5b1e218219b09857b06f88e522bccb4b5600.zip
Choose an up-to-date mirror for download URLs
Given that we collect a lot of mirror status data, we can utilize it to ensure the download link on the website actually works and newly-added packages have actually been mirrored out. Add a method that attempts to use the mirror status data to determine a mirror we should redirect our download requests to. This can change on a regular basis, and falls back to the old method if no mirror status data is available. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/utils.py')
0 files changed, 0 insertions, 0 deletions