[arch-releng] [PATCH 8/9] archiso_pxe_http: curl should follow redirects
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Thu Aug 2 21:08:35 EDT 2012
From: Florian Pritz <bluewind at xinu.at>
Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
archiso/hooks/archiso_pxe_http | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/archiso/hooks/archiso_pxe_http b/archiso/hooks/archiso_pxe_http
index ae56210..32e8ab0 100644
--- a/archiso/hooks/archiso_pxe_http
+++ b/archiso/hooks/archiso_pxe_http
@@ -19,7 +19,7 @@ _curl_get() {
local _dst="${2}"
msg ":: Downloading '${_url}'"
- if ! curl -f -o "/run/archiso/httpspace/${archisobasedir}${_dst}/${_url##*/}" --create-dirs "${_url}"; then
+ if ! curl -L -f -o "/run/archiso/httpspace/${archisobasedir}${_dst}/${_url##*/}" --create-dirs "${_url}"; then
echo "ERROR: Downloading '${_url}'"
echo " Falling back to interactive prompt"
echo " You can try to fix the problem manually, log out when you are finished"
--
1.7.11.4
More information about the arch-releng
mailing list