Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-06-03 16:01:32 -0400
committerAllan McRae <allan@archlinux.org>2018-06-18 13:15:51 +1000
commitb37a6063d0d37eb16465693439e3dfb92409e44a (patch)
tree6c301f79905afac65abb9bf27d3cbe61673a11eb /etc
parentf78914cc6e3d431ec585c29e469a91121d90a5cf (diff)
pacman.conf: Fixup the XferCommand example for curl
1. Without `-L`, curl doesn't follow redirects. This is different than both the default behavior of pacman, and from the wget example. So add `-L`. 2. It uses `-C -` to supposedly allow resuming partial downloads; but that doesn't work if we use `> %o` to direct the output to the file. Instead, use `-o %o` so that `-C -` actually works. Signed-off-by: Luke Shumaker <lukeshu@parabola.nu> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/pacman.conf.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/pacman.conf.in b/etc/pacman.conf.in
index 53071e52..8e967fbb 100644
--- a/etc/pacman.conf.in
+++ b/etc/pacman.conf.in
@@ -16,7 +16,7 @@
#GPGDir = @sysconfdir@/pacman.d/gnupg/
#HookDir = @sysconfdir@/pacman.d/hooks/
HoldPkg = pacman glibc
-#XferCommand = /usr/bin/curl -C - -f %u > %o
+#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7