diff options
author | grizzlyuser <grizzlyuser@protonmail.com> | 2020-04-07 16:37:05 +0300 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2020-04-09 11:34:09 +0200 |
commit | 9876f782ec415db7a879d5e25f8a7b5fcde5c4de (patch) | |
tree | 881985359cc0786df82752e11e268ebebf9771b1 /libre/reflector/rebranding.patch | |
parent | 478427f6e989a64c91cc50da6c2bd2ff4a8a6de4 (diff) | |
download | abslibre-9876f782ec415db7a879d5e25f8a7b5fcde5c4de.tar.gz abslibre-9876f782ec415db7a879d5e25f8a7b5fcde5c4de.tar.bz2 abslibre-9876f782ec415db7a879d5e25f8a7b5fcde5c4de.zip |
libre/reflector 2020.3.21.2-1: Sync with Arch Linux, update rebranding
Signed-off-by: Andreas Grapentin <andreas@grapentin.org>
Diffstat (limited to 'libre/reflector/rebranding.patch')
-rw-r--r-- | libre/reflector/rebranding.patch | 132 |
1 files changed, 78 insertions, 54 deletions
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch index 7cade23f5..1afa8e554 100644 --- a/libre/reflector/rebranding.patch +++ b/libre/reflector/rebranding.patch @@ -1,8 +1,17 @@ diff --git a/Reflector.py b/Reflector.py -index 1f22f18..64d6453 100644 +index 5263316..3498174 100644 --- a/Reflector.py +++ b/Reflector.py -@@ -42,7 +42,7 @@ import urllib.request +@@ -20,7 +20,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 +@@ -48,7 +48,7 @@ import urllib.request NAME = 'Reflector' @@ -11,59 +20,74 @@ index 1f22f18..64d6453 100644 DISPLAY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S UTC' PARSE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ' -@@ -436,7 +436,7 @@ def format_mirrorlist(mirror_status, mtime, include_country=False, command=None) +@@ -440,7 +440,7 @@ def format_mirrorlist(mirror_status, mtime, include_country=False, command=None, - 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 = '' - mirrorlist = '{}\n{}\n{}\n'.format(border, header, border) + \ -@@ -496,8 +496,18 @@ class MirrorStatus(): - 'extra', - 'gnome-unstable', - 'kde-unstable', -+ 'libre', -+ 'libre-testing', -+ 'libre-multilib', -+ 'libre-multilib-testing', - 'multilib', -- 'multilib-testing' -+ 'multilib-testing', -+ 'nonprism', -+ 'nonprism-testing', -+ 'pcr', -+ 'kernels', -+ 'java', -+ 'cross', - 'staging', - 'testing' - ) -@@ -655,7 +665,7 @@ def add_arguments(parser): - ''' - Add reflector arguments to the argument parser. - ''' -- parser = argparse.ArgumentParser(description='retrieve and filter a list of the latest Arch Linux mirrors') -+ parser = argparse.ArgumentParser(description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors') + 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( +@@ -494,8 +494,18 @@ class MirrorStatus(): + 'extra', + 'gnome-unstable', + 'kde-unstable', ++ 'libre', ++ 'libre-testing', ++ 'libre-multilib', ++ 'libre-multilib-testing', + 'multilib', +- 'multilib-testing' ++ 'multilib-testing', ++ 'nonprism', ++ 'nonprism-testing', ++ 'pcr', ++ 'kernels', ++ 'java', ++ 'cross', + 'staging', + 'testing' + ) +@@ -638,7 +648,7 @@ def add_arguments(parser): + ''' + Add reflector arguments to the argument parser. + ''' +- parser = argparse.ArgumentParser(description='retrieve and filter a list of the latest Arch Linux mirrors') ++ parser = argparse.ArgumentParser(description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors') - parser.add_argument( - '--connection-timeout', type=int, metavar='n', default=DEFAULT_CONNECTION_TIMEOUT, -@@ -674,7 +684,7 @@ def add_arguments(parser): + parser.add_argument( + '--connection-timeout', type=int, metavar='n', default=DEFAULT_CONNECTION_TIMEOUT, +@@ -657,7 +667,7 @@ 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.' -+ help='The cache timeout in seconds for the data retrieved from the Parabola GNU/Linux-libre Mirror Status API. The default is %(default)s.' - ) + 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.' ++ help='The cache timeout in seconds for the data retrieved from the Parabola GNU/Linux-libre Mirror Status API. The default is %(default)s.' + ) - parser.add_argument( -@@ -784,7 +794,7 @@ def parse_args(args=None): - Parse command-line arguments. - ''' - parser = argparse.ArgumentParser( -- 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' - ) - parser = add_arguments(parser) - options = parser.parse_args(args) + parser.add_argument( +@@ -769,7 +779,7 @@ def parse_args(args=None): + Parse command-line arguments. + ''' + parser = argparse.ArgumentParser( +- 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' + ) + parser = add_arguments(parser) + options = parser.parse_args(args) +diff --git a/man/reflector.1 b/man/reflector.1 +index 4a9a5d2..139dec6 100644 +--- a/man/reflector.1 ++++ b/man/reflector.1 +@@ -11,8 +11,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[C]reflector --help\f[R]. |