summaryrefslogtreecommitdiff
path: root/libre/reflector/rebranding.patch
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-09-27 18:21:05 -0300
committerDavid P <megver83@parabola.nu>2020-09-27 18:21:05 -0300
commitd1f10cc5ba8e163f35eec9e22338cb27a0bb0313 (patch)
tree3fb556457593b544cc1b43a17d3dff21d31d82b7 /libre/reflector/rebranding.patch
parent6f67b2953aadd8c44bd0135960d65f4a682efb8d (diff)
updpkg: libre/reflector 2020.9-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/reflector/rebranding.patch')
-rw-r--r--libre/reflector/rebranding.patch31
1 files changed, 11 insertions, 20 deletions
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch
index 1afa8e554..e035cfaae 100644
--- a/libre/reflector/rebranding.patch
+++ b/libre/reflector/rebranding.patch
@@ -1,5 +1,5 @@
diff --git a/Reflector.py b/Reflector.py
-index 5263316..3498174 100644
+index 1665090..045fb94 100644
--- a/Reflector.py
+++ b/Reflector.py
@@ -20,7 +20,7 @@
@@ -11,7 +11,7 @@ index 5263316..3498174 100644
'''
import argparse
-@@ -48,7 +48,7 @@ import urllib.request
+@@ -49,7 +49,7 @@ import urllib.request
NAME = 'Reflector'
@@ -20,7 +20,7 @@ index 5263316..3498174 100644
DISPLAY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S UTC'
PARSE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
-@@ -440,7 +440,7 @@ def format_mirrorlist(mirror_status, mtime, include_country=False, command=None,
+@@ -441,7 +441,7 @@ def format_mirrorlist(mirror_status, mtime, include_country=False, command=None,
width = 80
colw = 11
@@ -29,7 +29,7 @@ index 5263316..3498174 100644
border = '#' * len(header)
mirrorlist = f'{border}\n{header}\n{border}\n\n' + \
'\n'.join(
-@@ -494,8 +494,18 @@ class MirrorStatus():
+@@ -495,8 +495,18 @@ class MirrorStatus():
'extra',
'gnome-unstable',
'kde-unstable',
@@ -49,16 +49,7 @@ index 5263316..3498174 100644
'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,
-@@ -657,7 +667,7 @@ def add_arguments(parser):
+@@ -656,7 +666,7 @@ def add_arguments(parser):
parser.add_argument(
'--cache-timeout', type=int, metavar='n', default=DEFAULT_CACHE_TIMEOUT,
@@ -67,17 +58,17 @@ index 5263316..3498174 100644
)
parser.add_argument(
-@@ -769,7 +779,7 @@ def parse_args(args=None):
+@@ -790,7 +800,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 = 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)
- options = parser.parse_args(args)
diff --git a/man/reflector.1 b/man/reflector.1
-index 4a9a5d2..139dec6 100644
+index d5751eb..665e74b 100644
--- a/man/reflector.1
+++ b/man/reflector.1
@@ -11,8 +11,8 @@ reflector - retrieve and filter the latest Pacman mirrorlist