summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Reflector.py14
2 files changed, 6 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bee8a64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+__pycache__
diff --git a/Reflector.py b/Reflector.py
index 1665090..65e1f76 100644
--- a/Reflector.py
+++ b/Reflector.py
@@ -49,15 +49,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 = 'core/os/x86_64/core.db'
+DB_SUBPATH = 'i686/core/core.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
@@ -493,15 +493,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
@@ -626,7 +622,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':