summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anderson2018-03-19 19:22:55 -0700
committerEric Anderson2018-03-19 19:22:55 -0700
commitae8d75ee518a7bd10dfb18f8faa3a86a8d76a7ad (patch)
tree91ba1352c3e87e2d1a1527a4a05f847b057ef912
parentbfad3f48c6f0895ccc92c09651d34ec02793b9d2 (diff)
downloadaur-ae8d75ee518a7bd10dfb18f8faa3a86a8d76a7ad.tar.gz
Follow redirects when downloading
This fixes a problem with mirrors.kernel.org redirecting to mirrors.edge.kernel.org which caused curl to save zero-byte output files because the response body was zero-byte content.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD5
-rw-r--r--pkgdistcache.conf2
3 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1a9186525a31..946b8e874143 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Mar 1 16:11:48 UTC 2018
+# Tue Mar 20 02:20:50 UTC 2018
pkgbase = pkgdistcache
pkgdesc = A distributed local-network cache for pacman packages
pkgver = 0.5.0
- pkgrel = 2
+ pkgrel = 3
url = http://venator.ath.cx/dw/doku.php?id=linux:pkgdistcache
install = pkgdistcache.install
arch = any
@@ -15,13 +15,14 @@ pkgbase = pkgdistcache
depends = curl
depends = python-requests
depends = python-xdg
+ backup = etc/pkgdistcache.conf
source = pkgdistcache-client
source = pkgdistcache-daemon
source = pkgdistcache.conf
source = pkgdistcached.service
sha256sums = eac5e8c4afebdbb3b93d9d50d10abdaa3cdbd9da796d969f2cd9db2064a69d8d
sha256sums = 10379b95265e7aa3c6334197ef255327281e35b958c3c062ae893dd3a646a66e
- sha256sums = 5628cf4d81adaf7a3dd7243f51af1a30fff73a31b421615a7c0051280618f457
+ sha256sums = 25106b1e2ed50d04a684f4d356f3d5a34c815fe77af486c863a292dc7643105f
sha256sums = b98bccb089bc0025b0f9b4b949b691e5564b0e40778a263a5bb6ffa5f01d04a2
pkgname = pkgdistcache
diff --git a/PKGBUILD b/PKGBUILD
index ea27d36cd5db..7419c020db56 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,13 @@
pkgname=pkgdistcache
pkgver=0.5.0
-pkgrel=2
+pkgrel=3
pkgdesc='A distributed local-network cache for pacman packages'
arch=('any')
url='http://venator.ath.cx/dw/doku.php?id=linux:pkgdistcache'
license=('GPL')
depends=('avahi' 'python-dbus' 'dbus-glib' 'python-gobject' 'curl' 'python-requests' 'python-xdg')
+backup=('etc/pkgdistcache.conf')
install="${pkgname}.install"
source=('pkgdistcache-client'
'pkgdistcache-daemon'
@@ -16,7 +17,7 @@ source=('pkgdistcache-client'
'pkgdistcached.service')
sha256sums=('eac5e8c4afebdbb3b93d9d50d10abdaa3cdbd9da796d969f2cd9db2064a69d8d'
'10379b95265e7aa3c6334197ef255327281e35b958c3c062ae893dd3a646a66e'
- '5628cf4d81adaf7a3dd7243f51af1a30fff73a31b421615a7c0051280618f457'
+ '25106b1e2ed50d04a684f4d356f3d5a34c815fe77af486c863a292dc7643105f'
'b98bccb089bc0025b0f9b4b949b691e5564b0e40778a263a5bb6ffa5f01d04a2')
package() {
diff --git a/pkgdistcache.conf b/pkgdistcache.conf
index 8573795b5aa2..4f168d71b597 100644
--- a/pkgdistcache.conf
+++ b/pkgdistcache.conf
@@ -6,6 +6,6 @@
'port': 12500,
# Command to use to download files
- 'download_cmd': "/usr/bin/curl -C - -f -# -o $o $u"
+ 'download_cmd': "/usr/bin/curl -C - -f -# -L -o $o $u"
}