index : reflector32 | |
Archlinux32 fork of reflector | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-06-15 13:36:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-06-01 20:39:28 +0200 |
commit | 725386291ac95b07fb2bbacaa5419062801d4767 (patch) | |
tree | 59bd33c97a6d4597063b1f142e69c6f0ce5a81a6 | |
parent | 98254673742609393d2d023fe464d79342fef2dd (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Reflector.py | 14 |
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 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': |