summaryrefslogtreecommitdiff
path: root/libre/reflector
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-21 22:07:47 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-21 22:07:47 -0200
commit556df2ddf548ad91881f9cfbccbc077f0fc8260c (patch)
tree64e9ebd4883842b316e639af8937dc93ef282536 /libre/reflector
parent81cda5c8b9c43955d4d51c6c63def5353430d2d9 (diff)
downloadabslibre-556df2ddf548ad91881f9cfbccbc077f0fc8260c.tar.gz
abslibre-556df2ddf548ad91881f9cfbccbc077f0fc8260c.tar.bz2
abslibre-556df2ddf548ad91881f9cfbccbc077f0fc8260c.zip
reflector-2013.12.15.1-1: updating version
Diffstat (limited to 'libre/reflector')
-rw-r--r--libre/reflector/PKGBUILD16
-rw-r--r--libre/reflector/rebranding.patch59
2 files changed, 39 insertions, 36 deletions
diff --git a/libre/reflector/PKGBUILD b/libre/reflector/PKGBUILD
index e3b54ba59..d3b64fd8e 100644
--- a/libre/reflector/PKGBUILD
+++ b/libre/reflector/PKGBUILD
@@ -1,27 +1,27 @@
#Maintainer: Xyne <ac xunilhcra enyx, backwards>
#Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
pkgname=reflector
-pkgver=2013
-pkgrel=3.1
+pkgver=2013.12.15.1
+pkgrel=1
pkgdesc='A Python 3 module and script to retrieve and filter the latest Pacman mirror list (Parabola rebranded)'
arch=(any)
license=(GPL)
url="http://xyne.archlinux.ca/projects/reflector"
depends=(python3)
source=(
- http://xyne.archlinux.ca/projects/reflector/src/reflector-2013.tar.xz
- http://xyne.archlinux.ca/projects/reflector/src/reflector-2013.tar.xz.sig
+ http://xyne.archlinux.ca/projects/reflector/src/reflector-2013.12.15.1.tar.xz
+ http://xyne.archlinux.ca/projects/reflector/src/reflector-2013.12.15.1.tar.xz.sig
rebranding.patch
)
sha512sums=(
- 78351923edfafbf900e610d4461d341896e7618ceb4031120bb75155c5922cd6ba78b6309a04cf3802307e52d5b038ac7e7932ed8ccd59faa1acd197bd4765c5
+ ac8a23fb6746d85ee4e4d707659da07f5a7b6c18cadba03c8b03430cae70f444e6b35404342da2f9c0ea490e8c4c0f408657880de00a57d9f94d4ab335aa7c55
SKIP
- 29ff0df25cfc93bb0d6d8fdec69ba6e0160a8da249f4bbcaf57b9b82fb735659de6e2c1bf9a63a782bb17f29f841f8397dd48d7f60234cda292bc2eea63f8cd5
+ 83609177f88c0412f1a543f0431ecfb8be229bfef76d7087c35e9273988faedaf24a98ca45d98248eb5dfaa9a27e321dea99a256c68c5bc86a8a0ba53ed56d02
)
md5sums=(
- 3ea0857cdb4ca3e3f9c9c243d09b1fea
+ ccb315013442b7c8aa42c1d017835d38
SKIP
- c96302d6afc183d12c10f6e8a23b2d21
+ 24c2a21bc1ac0d3758d8043f36d95add
)
prepare ()
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch
index 186197565..d78462b06 100644
--- a/libre/reflector/rebranding.patch
+++ b/libre/reflector/rebranding.patch
@@ -1,7 +1,8 @@
-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 @@
+diff --git a/Reflector.py b/Reflector.py
+index c046d23..ddf3ac8 100644
+--- a/Reflector.py
++++ b/Reflector.py
+@@ -63,7 +63,7 @@ def get_cache_file():
class MirrorStatus():
# JSON URI
@@ -10,7 +11,7 @@ diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
# 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 @@
+@@ -92,8 +92,12 @@ class MirrorStatus():
'extra',
'gnome-unstable',
'kde-unstable',
@@ -24,32 +25,25 @@ diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
'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')
+@@ -449,7 +453,7 @@ class MirrorStatus():
+
+ 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 = '{}\n{}\n{}\n'.format(border, header, border) + \
+ '\n' + \
+@@ -516,7 +520,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', dest='connection_timeout', type=int, metavar='n', default=5,
-@@ -474,7 +478,7 @@
+@@ -535,7 +539,7 @@ def add_arguments(parser):
parser.add_argument(
'--cache-timeout', dest='cache_timeout', type=int, metavar='n', default=300,
@@ -58,3 +52,12 @@ diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
)
parser.add_argument(
+@@ -615,7 +619,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)