From 725386291ac95b07fb2bbacaa5419062801d4767 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 15 Jun 2018 13:36:41 +0200 Subject: archlinux -> achlinux32 updated URL and ARCHITECTURES --- Reflector.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'Reflector.py') 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': -- cgit v1.2.3