summaryrefslogtreecommitdiff
path: root/libre/reflector/rebranding.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-21 22:07:47 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-21 22:07:47 -0200
commit556df2ddf548ad91881f9cfbccbc077f0fc8260c (patch)
tree64e9ebd4883842b316e639af8937dc93ef282536 /libre/reflector/rebranding.patch
parent81cda5c8b9c43955d4d51c6c63def5353430d2d9 (diff)
reflector-2013.12.15.1-1: updating version
Diffstat (limited to 'libre/reflector/rebranding.patch')
-rw-r--r--libre/reflector/rebranding.patch59
1 files changed, 31 insertions, 28 deletions
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch
index 186197565..d78462b06 100644
--- a/libre/reflector/rebranding.patch
+++ b/libre/reflector/rebranding.patch
@@ -1,7 +1,8 @@
-diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
---- reflector-2013.orig/Reflector.py 2013-01-04 00:13:58.000000000 -0200
-+++ reflector-2013/Reflector.py 2013-12-14 16:30:41.096429595 -0200
-@@ -60,7 +60,7 @@
+diff --git a/Reflector.py b/Reflector.py
+index c046d23..ddf3ac8 100644
+--- a/Reflector.py
++++ b/Reflector.py
+@@ -63,7 +63,7 @@ def get_cache_file():
class MirrorStatus():
# JSON URI
@@ -10,7 +11,7 @@ diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
# 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"
-@@ -88,14 +88,18 @@
+@@ -92,8 +92,12 @@ class MirrorStatus():
'extra',
'gnome-unstable',
'kde-unstable',
@@ -24,32 +25,25 @@ diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
'staging',
'testing'
)
-
- # Known system architectures, as used to replace the "$arch" variable.
-- ARCHITECTURES = ['i686', 'x86_64']
-+ ARCHITECTURES = ['i686', 'x86_64', 'mips64el']
-
- # Initialize
- # refresh_interval:
-@@ -393,7 +397,7 @@
- if mirrors is None:
- mirrors = self.get_mirrors()
-
-- mirrorlist = ("# Arch Linux mirrorlist generated by Reflector\n" + "# %-11s %s\n" * 5 + "\n") % (\
-+ mirrorlist = ("# Parabola GNU/Linux-libre mirrorlist generated by Reflector\n" + "# %-11s %s\n" * 5 + "\n") % (\
- 'With:',
- ' '.join(cmd),
- 'When:',
-@@ -455,7 +459,7 @@
-
- # Parse arguments. If none are passed, use ARGV.
- def parse_args(args=None):
-- parser = ArgumentParser(description='retrieve and filter a list of the latest Arch Linux mirrors')
-+ parser = ArgumentParser(description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors')
+@@ -449,7 +453,7 @@ class MirrorStatus():
+
+ 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' + \
+@@ -516,7 +520,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', dest='connection_timeout', type=int, metavar='n', default=5,
-@@ -474,7 +478,7 @@
+@@ -535,7 +539,7 @@ def add_arguments(parser):
parser.add_argument(
'--cache-timeout', dest='cache_timeout', type=int, metavar='n', default=300,
@@ -58,3 +52,12 @@ diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
)
parser.add_argument(
+@@ -615,7 +619,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)