rebranding.patch 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. diff --git a/Reflector.py b/Reflector.py
  2. index 1665090..045fb94 100644
  3. --- a/Reflector.py
  4. +++ b/Reflector.py
  5. @@ -20,7 +20,7 @@
  6. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7. '''
  8. -Retrieve Arch Linux mirrors.
  9. +Retrieve Parabola GNU/Linux-libre mirrors.
  10. '''
  11. import argparse
  12. @@ -49,7 +49,7 @@ import urllib.request
  13. NAME = 'Reflector'
  14. -URL = 'https://www.archlinux.org/mirrors/status/json/'
  15. +URL = 'https://www.parabola.nu/mirrors/status/json/'
  16. DISPLAY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S UTC'
  17. PARSE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
  18. @@ -441,7 +441,7 @@ def format_mirrorlist(mirror_status, mtime, include_country=False, command=None,
  19. width = 80
  20. colw = 11
  21. - header = '# Arch Linux mirrorlist generated by Reflector #'.center(width, '#')
  22. + header = '# Parabola GNU/Linux-libre mirrorlist generated by Reflector #'.center(width, '#')
  23. border = '#' * len(header)
  24. mirrorlist = f'{border}\n{header}\n{border}\n\n' + \
  25. '\n'.join(
  26. @@ -495,8 +495,18 @@ class MirrorStatus():
  27. 'extra',
  28. 'gnome-unstable',
  29. 'kde-unstable',
  30. + 'libre',
  31. + 'libre-testing',
  32. + 'libre-multilib',
  33. + 'libre-multilib-testing',
  34. 'multilib',
  35. - 'multilib-testing'
  36. + 'multilib-testing',
  37. + 'nonprism',
  38. + 'nonprism-testing',
  39. + 'pcr',
  40. + 'kernels',
  41. + 'java',
  42. + 'cross',
  43. 'staging',
  44. 'testing'
  45. )
  46. @@ -656,7 +666,7 @@ def add_arguments(parser):
  47. parser.add_argument(
  48. '--cache-timeout', type=int, metavar='n', default=DEFAULT_CACHE_TIMEOUT,
  49. - help='The cache timeout in seconds for the data retrieved from the Arch Linux Mirror Status API. The default is %(default)s.'
  50. + help='The cache timeout in seconds for the data retrieved from the Parabola GNU/Linux-libre Mirror Status API. The default is %(default)s.'
  51. )
  52. parser.add_argument(
  53. @@ -790,7 +800,7 @@ def parse_args(args=None):
  54. Parse command-line arguments.
  55. '''
  56. parser = MyArgumentParser(
  57. - description='retrieve and filter a list of the latest Arch Linux mirrors',
  58. + description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors',
  59. fromfile_prefix_chars='@'
  60. )
  61. parser = add_arguments(parser)
  62. diff --git a/man/reflector.1 b/man/reflector.1
  63. index d5751eb..665e74b 100644
  64. --- a/man/reflector.1
  65. +++ b/man/reflector.1
  66. @@ -11,8 +11,8 @@ reflector - retrieve and filter the latest Pacman mirrorlist
  67. .SH DESCRIPTION
  68. .PP
  69. reflector is a Python script and associated Python module that can
  70. -retrieve up-to-date Arch Linux mirror data from the Mirror
  71. -Status (https://www.archlinux.org/mirrors/status/) web interface.
  72. +retrieve up-to-date Parabola GNU/Linux-libre mirror data from the
  73. +Mirror Status (https://www.parabola.nu/mirrors/status/) web interface.
  74. .SH ARGUMENTS
  75. .PP
  76. See \f[C]reflector --help\f[R].