Accepting request 329627 from home:cbosdonnat:branches:Virtualization

Forgot to add curl's --max-redirs 5 together with -L

OBS-URL: https://build.opensuse.org/request/show/329627
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=344
This commit is contained in:
Olaf Hering 2015-09-08 07:58:58 +00:00 committed by Git OBS Bridge
parent 7e157ec941
commit 676eaa8744

View File

@ -55,7 +55,7 @@ Index: libguestfs-1.26.10/builder/downloader.ml
| _ -> (* Any other protocol. *) | _ -> (* Any other protocol. *)
(* Get the status code first to ensure the file exists. *) (* Get the status code first to ensure the file exists. *)
- let cmd = sprintf "%s%s -g -o /dev/null -I -w '%%{http_code}' %s" - let cmd = sprintf "%s%s -g -o /dev/null -I -w '%%{http_code}' %s"
+ let cmd = sprintf "%s%s -L -g -o /dev/null -I -w '%%{http_code}' %s" + let cmd = sprintf "%s%s -L --max-redirs 5 -g -o /dev/null -I -w '%%{http_code}' %s"
t.curl t.curl
(if t.verbose then "" else " -s -S") (if t.verbose then "" else " -s -S")
(quote uri) in (quote uri) in
@ -64,7 +64,7 @@ Index: libguestfs-1.26.10/builder/downloader.ml
(* Now download the file. *) (* Now download the file. *)
- let cmd = sprintf "%s%s -g -o %s %s" - let cmd = sprintf "%s%s -g -o %s %s"
+ let cmd = sprintf "%s%s -L -g -o %s %s" + let cmd = sprintf "%s%s -L --max-redirs 5 -g -o %s %s"
t.curl t.curl
(if t.verbose then "" else if progress_bar then " -#" else " -s -S") (if t.verbose then "" else if progress_bar then " -#" else " -s -S")
(quote filename_new) (quote uri) in (quote filename_new) (quote uri) in