summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/mirrors/index.html4
-rw-r--r--templates/mirrors/mirrorlist.txt10
-rw-r--r--templates/mirrors/mirrorlist_status.txt13
3 files changed, 21 insertions, 6 deletions
diff --git a/templates/mirrors/index.html b/templates/mirrors/index.html
index 8c193bae..1d620b14 100644
--- a/templates/mirrors/index.html
+++ b/templates/mirrors/index.html
@@ -31,7 +31,9 @@
<a href="http://wiki.archlinux.org/index.php/Pacman"
title="ArchWiki: Pacman">pacman</a> mirrorlist based on geography and
desired protocol(s). Simply replace the contents of
- <code>/etc/pacman.d/mirrorlist</code> with your generated list.</p>
+ <code>/etc/pacman.d/mirrorlist</code> with your generated list.
+ Additionally, the mirror status data can be incorporated into the generated
+ mirror list and used to pre-order the mirrors.</p>
<form id="list-generator" method="get">
{{ mirrorlist_form.as_p }}
diff --git a/templates/mirrors/mirrorlist.txt b/templates/mirrors/mirrorlist.txt
index 9d5b6919..2eedbd71 100644
--- a/templates/mirrors/mirrorlist.txt
+++ b/templates/mirrors/mirrorlist.txt
@@ -3,11 +3,11 @@ 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
-# Generated on {% now "Y-m-d" %}
-#{% for mirror_url in mirror_urls %}{% ifchanged %}
+{% endcomment %}{% autoescape off %}##
+## Arch Linux repository mirrorlist
+## Generated on {% now "Y-m-d" %}
+##{% for mirror_url in mirror_urls %}{% ifchanged %}
-# {{ mirror_url.mirror.country }}{% endifchanged %}
+## {{ mirror_url.mirror.country }}{% endifchanged %}
#Server = {{ mirror_url.url}}$repo/os/$arch{% endfor %}
{% endautoescape %}
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 %}