diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-18 19:21:59 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-18 19:21:59 -0300 |
commit | 95a38ad9f37dcfa806f90879bccbccc3c1adae85 (patch) | |
tree | 648a16d379479e757011826b17bf86928a0f34c8 /libre/reflector/rebranding.patch | |
parent | 01f574d3db4fb3b74bc43b1c8743c886ea203c6f (diff) | |
parent | 8452da624e99b276d0f8da2e6c6900915fc15546 (diff) | |
download | abslibre-95a38ad9f37dcfa806f90879bccbccc3c1adae85.tar.gz abslibre-95a38ad9f37dcfa806f90879bccbccc3c1adae85.tar.bz2 abslibre-95a38ad9f37dcfa806f90879bccbccc3c1adae85.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/reflector/rebranding.patch')
-rw-r--r-- | libre/reflector/rebranding.patch | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch index d78462b06..b29653ffd 100644 --- a/libre/reflector/rebranding.patch +++ b/libre/reflector/rebranding.patch @@ -1,22 +1,23 @@ diff --git a/Reflector.py b/Reflector.py -index c046d23..ddf3ac8 100644 +index 20b7fc7..22e5f9d 100644 --- a/Reflector.py +++ b/Reflector.py @@ -63,7 +63,7 @@ def get_cache_file(): - class MirrorStatus(): + class MirrorStatus(object): # 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" -@@ -92,8 +92,12 @@ class MirrorStatus(): +@@ -92,8 +92,13 @@ class MirrorStatus(object): 'extra', 'gnome-unstable', 'kde-unstable', + 'libre', + 'libre-testing', ++ 'libre-multilib', 'multilib', - 'multilib-testing' + 'multilib-testing', @@ -25,7 +26,7 @@ index c046d23..ddf3ac8 100644 'staging', 'testing' ) -@@ -449,7 +453,7 @@ class MirrorStatus(): +@@ -453,7 +458,7 @@ class MirrorStatus(object): width = 80 colw = 11 @@ -34,7 +35,7 @@ index c046d23..ddf3ac8 100644 border = '#' * len(header) mirrorlist = '{}\n{}\n{}\n'.format(border, header, border) + \ '\n' + \ -@@ -516,7 +520,7 @@ def add_arguments(parser): +@@ -542,7 +547,7 @@ def add_arguments(parser): ''' Add reflector arguments to the argument parser. ''' @@ -42,17 +43,17 @@ index c046d23..ddf3ac8 100644 + 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, -@@ -535,7 +539,7 @@ def add_arguments(parser): + '--connection-timeout', type=int, metavar='n', default=5, +@@ -561,7 +566,7 @@ def add_arguments(parser): parser.add_argument( - '--cache-timeout', dest='cache_timeout', type=int, metavar='n', default=300, + '--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( -@@ -615,7 +619,7 @@ def parse_args(args=None): +@@ -646,7 +651,7 @@ def parse_args(args=None): Parse command-line arguments. ''' parser = argparse.ArgumentParser( |