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 532484f..dee77dd 100644
--- a/Reflector.py
+++ b/Reflector.py
@@ -50,15 +50,15 @@ import urllib.request
NAME = 'Reflector'
-URL = 'https://www.archlinux.org/mirrors/status/json/'
+URL = 'https://www.archlinux32.org/mirrors/status/json'
DISPLAY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S UTC'
PARSE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
PARSE_TIME_FORMAT_WITH_USEC = '%Y-%m-%dT%H:%M:%S.%fZ'
-DB_SUBPATH = 'community/os/x86_64/community.db'
+DB_SUBPATH = 'i686/community/community.db'
-MIRROR_URL_FORMAT = '{0}{1}/os/{2}'
+MIRROR_URL_FORMAT = '{0}{2}/{1}'
MIRRORLIST_ENTRY_FORMAT = "Server = " + MIRROR_URL_FORMAT + "\n"
DEFAULT_CONNECTION_TIMEOUT = 5
@@ -651,15 +651,11 @@ class MirrorStatus():
'community-testing',
'core',
'extra',
- 'gnome-unstable',
- 'kde-unstable',
- 'multilib',
- 'multilib-testing'
'staging',
'testing'
)
# Officially supported system architectures.
- ARCHITECTURES = ['x86_64']
+ ARCHITECTURES = ['i486','i686','pentium4']
MIRROR_URL_FORMAT = MIRROR_URL_FORMAT
MIRRORLIST_ENTRY_FORMAT = MIRRORLIST_ENTRY_FORMAT
@@ -797,7 +793,7 @@ def print_mirror_info(mirrors, time_fmt=DISPLAY_TIME_FORMAT):
length = max(len(k) for k in keys)
fmt = '{{:{:d}s}} : {{}}'.format(length)
for mir in mirrors:
- print('{}$repo/os/$arch'.format(mir['url']))
+ print('{}$arch/$repo'.format(mir['url']))
for key in keys:
value = mir[key]
if key == 'last_sync':