Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Reflector.py
diff options
context:
space:
mode:
Diffstat (limited to 'Reflector.py')
-rw-r--r--Reflector.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/Reflector.py b/Reflector.py
index b81f910..36f4a9a 100644
--- a/Reflector.py
+++ b/Reflector.py
@@ -65,9 +65,9 @@ def get_cache_file():
class MirrorStatus(object):
# JSON URI
- URL = 'https://www.archlinux.org/mirrors/status/json/'
+ URL = 'https://packages.archlinux32.org/mirrors/status.php?json'
# Mirror URL format. Accepts server base URL, repository, and architecture.
- MIRROR_URL_FORMAT = '{0}{1}/os/{2}'
+ MIRROR_URL_FORMAT = '{0}{2}/{1}'
MIRRORLIST_ENTRY_FORMAT = "Server = " + MIRROR_URL_FORMAT + "\n"
DISPLAY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S UTC'
PARSE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
@@ -92,16 +92,12 @@ class MirrorStatus(object):
'community-testing',
'core',
'extra',
- 'gnome-unstable',
- 'kde-unstable',
- 'multilib',
- 'multilib-testing'
'staging',
'testing'
)
# Known system architectures, as used to replace the "$arch" variable.
- ARCHITECTURES = ['x86_64']
+ ARCHITECTURES = ['i686']
# Initialize
# refresh_interval:
@@ -333,7 +329,7 @@ class MirrorStatus(object):
def worker():
while True:
url = q_in.get()
- db_subpath = 'core/os/x86_64/core.db'
+ db_subpath = 'i686/core/core.db'
db_url = url + db_subpath
scheme = urllib.parse.urlparse(url).scheme
# Leave the rate as 0 if the connection fails.
@@ -534,7 +530,7 @@ def print_mirror_info(mirrors, time_fmt=MirrorStatus.DISPLAY_TIME_FORMAT):
l = max(len(k) for k in ks)
fmt = '{{:{:d}s}} : {{}}'.format(l)
for m in mirrors:
- print('{}$repo/os/$arch'.format(m['url']))
+ print('{}$arch/$repo'.format(m['url']))
for k in ks:
v = m[k]
if k == 'last_sync':