diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2019-06-12 22:43:33 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2019-06-12 22:43:33 -0400 |
commit | 695b6438d2a9b57c8a349efb59ff413f62c1a4ca (patch) | |
tree | 48b49e6af6abb85b2f602fb027deb3054ffea301 /libre/reflector/rebranding.patch | |
parent | 4abacaccda02e9ac7a9fd70e619f54e48b4a9785 (diff) |
[reflector]: upgrade to 2019.3
Diffstat (limited to 'libre/reflector/rebranding.patch')
-rw-r--r-- | libre/reflector/rebranding.patch | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch index 3b6adaad2..7cade23f5 100644 --- a/libre/reflector/rebranding.patch +++ b/libre/reflector/rebranding.patch @@ -1,16 +1,26 @@ -diff -Nur reflector-2014.11.orig/Reflector.py reflector-2014.11/Reflector.py ---- reflector-2014.11.orig/Reflector.py 2014-11-01 14:22:45.000000000 -0200 -+++ reflector-2014.11/Reflector.py 2014-11-03 12:54:07.656310663 -0200 -@@ -64,7 +64,7 @@ +diff --git a/Reflector.py b/Reflector.py +index 1f22f18..64d6453 100644 +--- a/Reflector.py ++++ b/Reflector.py +@@ -42,7 +42,7 @@ import urllib.request - class MirrorStatus(object): - # JSON URI -- URL = 'https://www.archlinux.org/mirrors/status/json/' -+ URL = 'https://www.parabola.nu/mirrors/status/json/' - # Mirror URL format. Accepts server base URL, repository, and architecture. - MIRROR_URL_FORMAT = '{0}{1}/os/{2}' - MIRRORLIST_ENTRY_FORMAT = "Server = " + MIRROR_URL_FORMAT + "\n" -@@ -93,8 +93,18 @@ + NAME = 'Reflector' + +-URL = 'https://www.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' +@@ -436,7 +436,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', @@ -30,16 +40,7 @@ diff -Nur reflector-2014.11.orig/Reflector.py reflector-2014.11/Reflector.py 'staging', 'testing' ) -@@ -452,7 +462,7 @@ - - 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 = '{}\n{}\n{}\n'.format(border, header, border) + \ - '\n' + \ -@@ -541,7 +551,7 @@ +@@ -655,7 +665,7 @@ def add_arguments(parser): ''' Add reflector arguments to the argument parser. ''' @@ -47,17 +48,17 @@ diff -Nur reflector-2014.11.orig/Reflector.py reflector-2014.11/Reflector.py + 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=5, -@@ -560,7 +570,7 @@ + '--connection-timeout', type=int, metavar='n', default=DEFAULT_CONNECTION_TIMEOUT, +@@ -674,7 +684,7 @@ def add_arguments(parser): parser.add_argument( - '--cache-timeout', type=int, metavar='n', default=300, -- help='The cache timeout in seconds for the data retrieved from the Arch Linux Mirror Status API. The default is 300 (5 minutes).' -+ help='The cache timeout in seconds for the data retrieved from the Parabola GNU/Linux-libre Mirror Status API. The default is 300 (5 minutes).' + '--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( -@@ -645,7 +655,7 @@ +@@ -784,7 +794,7 @@ def parse_args(args=None): Parse command-line arguments. ''' parser = argparse.ArgumentParser( |