aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2013-10-19 22:16:14 -0700
committerBrian Dolbec <dolsen@gentoo.org>2013-10-19 22:16:14 -0700
commit9adaf7f83ff26b484b60917002dd2814e81ce7d0 (patch)
tree6f29d0b447a22a64b142b820a6dc13797706ae19
parentfix HTTPError import and exception (diff)
downloadmirrorselect-9adaf7f83ff26b484b60917002dd2814e81ce7d0.tar.gz
mirrorselect-9adaf7f83ff26b484b60917002dd2814e81ce7d0.tar.bz2
mirrorselect-9adaf7f83ff26b484b60917002dd2814e81ce7d0.zip
Add new urls for api.gentoo.org
-rw-r--r--mirrorselect/mirrorparser3.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/mirrorselect/mirrorparser3.py b/mirrorselect/mirrorparser3.py
index 6b06a9c..16cb1c6 100644
--- a/mirrorselect/mirrorparser3.py
+++ b/mirrorselect/mirrorparser3.py
@@ -31,8 +31,13 @@ from __future__ import print_function
from xml.etree import ElementTree as ET
-MIRRORS_3_XML = 'http://www.gentoo.org/main/en/mirrors3.xml'
-MIRRORS_RSYNC_DATA = 'http://www.gentoo.org/main/en/mirrors-rsync-data.xml'
+# old url's
+#MIRRORS_3_XML = 'http://www.gentoo.org/main/en/mirrors3.xml'
+#MIRRORS_RSYNC_DATA = 'http://www.gentoo.org/main/en/mirrors-rsync-data.xml'
+
+# new urls
+MIRRORS_3_XML = 'https://api.gentoo.org/mirrors/distfiles.xml'
+MIRRORS_RSYNC_DATA = 'https://api.gentoo.org/mirrors/rsync.xml'
class MirrorParser3:
def __init__(self, options=None):