123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- diff --git a/Reflector.py b/Reflector.py
- index 1c3bd5d..6dd2817 100644
- --- a/Reflector.py
- +++ b/Reflector.py
- @@ -21,7 +21,7 @@
- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
- '''
- -Retrieve Arch Linux mirrors.
- +Retrieve Parabola GNU/Linux-libre mirrors.
- '''
-
- import argparse
- @@ -49,7 +49,7 @@ import urllib.request
-
- NAME = 'Reflector'
-
- -URL = 'https://archlinux.org/mirrors/status/json/'
- +URL = 'https://www.parabola.nu/mirrors/status/json/'
-
- DISPLAY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S UTC'
- PARSE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
- @@ -605,7 +605,7 @@ def format_mirrorlist(
-
- width = 80
- colw = 11
- - header = '# Arch Linux mirrorlist generated by Reflector #'.center(width, '#')
- + header = '# Parabola GNU/Linux-libre mirrorlist generated by Reflector #'.center(width, '#')
- border = '#' * len(header)
- mirrorlist = f'{border}\n{header}\n{border}\n\n' + \
- '\n'.join(
- @@ -653,15 +653,41 @@ class MirrorStatus():
- # Move these to another module or remove them completely Related:
- # https://bugs.archlinux.org/task/32895
- REPOSITORIES = (
- + 'nonprism',
- + 'nonprism-testing',
- + 'nonsystemd'
- + 'nonsystemd-testing',
- +
- + 'libre',
- + 'libre-testing',
- 'core',
- 'core-testing',
- 'extra',
- 'extra-testing',
- +
- + 'pcr',
- + 'pcr-testing',
- + 'community', # i686-only
- + 'community-testing', # i686-only
- +
- + # x86_64-only
- + 'nonprism-multilib',
- + 'nonprism-multilib-testing',
- + 'nonsystemd-multilib',
- + 'nonsystemd-multilib-testing',
- + 'libre-multilib',
- + 'libre-multilib-testing',
- 'multilib',
- 'multilib-testing'
- + 'pcr-multilib',
- + 'pcr-multilib-testing',
- )
- # Officially supported system architectures.
- - ARCHITECTURES = ['x86_64']
- + ARCHITECTURES = [
- + 'armv7h',
- + 'i686',
- + 'x86_64'
- + ]
-
- MIRROR_URL_FORMAT = MIRROR_URL_FORMAT
- MIRRORLIST_ENTRY_FORMAT = MIRRORLIST_ENTRY_FORMAT
- @@ -830,8 +856,8 @@ def add_arguments(parser):
- parser.add_argument(
- '--cache-timeout', type=int, metavar='n', default=DEFAULT_CACHE_TIMEOUT,
- help=(
- - '''The cache timeout in seconds for the data retrieved from the Arch
- - Linux Mirror Status API. The default is %(default)s. '''
- + '''The cache timeout in seconds for the data retrieved from the Parabola
- + GNU/Linux-libre Mirror Status API. The default is %(default)s. '''
- )
- )
-
- @@ -1024,7 +1050,7 @@ def parse_args(args=None):
- Parse command-line arguments.
- '''
- parser = MyArgumentParser(
- - description='retrieve and filter a list of the latest Arch Linux mirrors',
- + description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors',
- fromfile_prefix_chars='@'
- )
- parser = add_arguments(parser)
- diff --git a/man.md/reflector.1.md b/man.md/reflector.1.md
- index c468d4f..8f36bba 100644
- --- a/man.md/reflector.1.md
- +++ b/man.md/reflector.1.md
- @@ -9,7 +9,7 @@ reflector - retrieve and filter the latest Pacman mirrorlist
-
- # Description
-
- -reflector is a Python script and associated Python module that can retrieve up-to-date Arch Linux mirror data from the [Mirror Status](https://www.archlinux.org/mirrors/status/) web interface.
- +reflector is a Python script and associated Python module that can retrieve up-to-date Parabola GNU/Linux-libre mirror data from the [Mirror Status](https://www.parabola.nu/mirrors/status/) web interface.
-
-
- # Arguments
- diff --git a/man/reflector.1 b/man/reflector.1
- index f3d9dda..1e67c4b 100644
- --- a/man/reflector.1
- +++ b/man/reflector.1
- @@ -25,8 +25,8 @@ reflector - retrieve and filter the latest Pacman mirrorlist
- .SH DESCRIPTION
- .PP
- reflector is a Python script and associated Python module that can
- -retrieve up-to-date Arch Linux mirror data from the Mirror
- -Status (https://www.archlinux.org/mirrors/status/) web interface.
- +retrieve up-to-date Parabola GNU/Linux-libre mirror data from the
- +Mirror Status (https://www.parabola.nu/mirrors/status/) web interface.
- .SH ARGUMENTS
- .PP
- See \f[V]reflector --help\f[R].
|