From 550ef2eeeb58a3899b612bf5f895b2ae962086a9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 21 Sep 2010 18:58:34 -0500 Subject: Allow generated mirrorlist to take status info into account By using the mirror score we calculate, we can sort the mirrors in the generated mirrorlist for people. Signed-off-by: Dan McGee --- templates/mirrors/mirrorlist_status.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/mirrors/mirrorlist_status.txt (limited to 'templates/mirrors/mirrorlist_status.txt') diff --git a/templates/mirrors/mirrorlist_status.txt b/templates/mirrors/mirrorlist_status.txt new file mode 100644 index 00000000..e2fbc1e6 --- /dev/null +++ b/templates/mirrors/mirrorlist_status.txt @@ -0,0 +1,13 @@ +{% comment %} +Yes, ugly templates are ugly, but in order to keep line breaks where we want +them, sacrifices have to be made. If editing this template, it is easiest to +forget about where line breaks are happening until you are done getting the +content right, and then go back later to fix it all up. +{% endcomment %}{% autoescape off %}## +## Arch Linux repository mirrorlist +## Sorted by mirror score from mirror status page +## Generated on {% now "Y-m-d" %} +{% for mirror_url in mirror_urls %} +## Score: {{ mirror_url.score|floatformat:1|default:'unknown' }}, {{ mirror_url.mirror.country }} +#Server = {{ mirror_url.url}}$repo/os/$arch{% endfor %} +{% endautoescape %} -- cgit v1.2.3