summaryrefslogtreecommitdiff
path: root/libre/reflector/rebranding.patch
blob: 186197565fca13fca2de98ae3576ac31b54658c4 (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
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 @@
 
 class MirrorStatus():
   # JSON URI
-  URL = 'https://www.archlinux.org/mirrors/status/json/'
+  URL = 'https://parabolagnulinux.org/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"
@@ -88,14 +88,18 @@
     'extra',
     'gnome-unstable',
     'kde-unstable',
+    'libre',
+    'libre-testing',
     'multilib',
-    'multilib-testing'
+    'multilib-testing',
+    'nonprism',
+    'pcr',
     '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')
 
   parser.add_argument(
     '--connection-timeout', dest='connection_timeout', type=int, metavar='n', default=5,
@@ -474,7 +478,7 @@
 
   parser.add_argument(
     '--cache-timeout', dest='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).'
   )
 
   parser.add_argument(