9001-branding.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. diff --git a/Reflector.py b/Reflector.py
  2. index 1c3bd5d..6dd2817 100644
  3. --- a/Reflector.py
  4. +++ b/Reflector.py
  5. @@ -21,7 +21,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://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. @@ -605,7 +605,7 @@ def format_mirrorlist(
  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. @@ -653,15 +653,41 @@ class MirrorStatus():
  27. # Move these to another module or remove them completely Related:
  28. # https://bugs.archlinux.org/task/32895
  29. REPOSITORIES = (
  30. + 'nonprism',
  31. + 'nonprism-testing',
  32. + 'nonsystemd'
  33. + 'nonsystemd-testing',
  34. +
  35. + 'libre',
  36. + 'libre-testing',
  37. 'core',
  38. 'core-testing',
  39. 'extra',
  40. 'extra-testing',
  41. +
  42. + 'pcr',
  43. + 'pcr-testing',
  44. + 'community', # i686-only
  45. + 'community-testing', # i686-only
  46. +
  47. + # x86_64-only
  48. + 'nonprism-multilib',
  49. + 'nonprism-multilib-testing',
  50. + 'nonsystemd-multilib',
  51. + 'nonsystemd-multilib-testing',
  52. + 'libre-multilib',
  53. + 'libre-multilib-testing',
  54. 'multilib',
  55. 'multilib-testing'
  56. + 'pcr-multilib',
  57. + 'pcr-multilib-testing',
  58. )
  59. # Officially supported system architectures.
  60. - ARCHITECTURES = ['x86_64']
  61. + ARCHITECTURES = [
  62. + 'armv7h',
  63. + 'i686',
  64. + 'x86_64'
  65. + ]
  66. MIRROR_URL_FORMAT = MIRROR_URL_FORMAT
  67. MIRRORLIST_ENTRY_FORMAT = MIRRORLIST_ENTRY_FORMAT
  68. @@ -830,8 +856,8 @@ def add_arguments(parser):
  69. parser.add_argument(
  70. '--cache-timeout', type=int, metavar='n', default=DEFAULT_CACHE_TIMEOUT,
  71. help=(
  72. - '''The cache timeout in seconds for the data retrieved from the Arch
  73. - Linux Mirror Status API. The default is %(default)s. '''
  74. + '''The cache timeout in seconds for the data retrieved from the Parabola
  75. + GNU/Linux-libre Mirror Status API. The default is %(default)s. '''
  76. )
  77. )
  78. @@ -1024,7 +1050,7 @@ def parse_args(args=None):
  79. Parse command-line arguments.
  80. '''
  81. parser = MyArgumentParser(
  82. - description='retrieve and filter a list of the latest Arch Linux mirrors',
  83. + description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors',
  84. fromfile_prefix_chars='@'
  85. )
  86. parser = add_arguments(parser)
  87. diff --git a/man.md/reflector.1.md b/man.md/reflector.1.md
  88. index c468d4f..8f36bba 100644
  89. --- a/man.md/reflector.1.md
  90. +++ b/man.md/reflector.1.md
  91. @@ -9,7 +9,7 @@ reflector - retrieve and filter the latest Pacman mirrorlist
  92. # Description
  93. -reflector is a Python script and associated Python module that can retrieve up-to-date Arch Linux mirror data from the [Mirror Status](https://www.archlinux.org/mirrors/status/) web interface.
  94. +reflector is a Python script and associated Python module that can retrieve up-to-date Parabola GNU/Linux-libre mirror data from the [Mirror Status](https://www.parabola.nu/mirrors/status/) web interface.
  95. # Arguments
  96. diff --git a/man/reflector.1 b/man/reflector.1
  97. index f3d9dda..1e67c4b 100644
  98. --- a/man/reflector.1
  99. +++ b/man/reflector.1
  100. @@ -25,8 +25,8 @@ reflector - retrieve and filter the latest Pacman mirrorlist
  101. .SH DESCRIPTION
  102. .PP
  103. reflector is a Python script and associated Python module that can
  104. -retrieve up-to-date Arch Linux mirror data from the Mirror
  105. -Status (https://www.archlinux.org/mirrors/status/) web interface.
  106. +retrieve up-to-date Parabola GNU/Linux-libre mirror data from the
  107. +Mirror Status (https://www.parabola.nu/mirrors/status/) web interface.
  108. .SH ARGUMENTS
  109. .PP
  110. See \f[V]reflector --help\f[R].