summaryrefslogtreecommitdiff
path: root/libre/reflector/rebranding.patch
blob: 7cade23f5971bb056413d9bea344d584366af8af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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
 
 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',
+    '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')
 
   parser.add_argument(
     '--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=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)