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:
parent
7e157ec941
commit
676eaa8744
@ -55,7 +55,7 @@ Index: libguestfs-1.26.10/builder/downloader.ml
|
||||
| _ -> (* Any other protocol. *)
|
||||
(* 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 -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
|
||||
(if t.verbose then "" else " -s -S")
|
||||
(quote uri) in
|
||||
@ -64,7 +64,7 @@ Index: libguestfs-1.26.10/builder/downloader.ml
|
||||
|
||||
(* Now download the file. *)
|
||||
- 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
|
||||
(if t.verbose then "" else if progress_bar then " -#" else " -s -S")
|
||||
(quote filename_new) (quote uri) in
|
||||
|
Loading…
Reference in New Issue
Block a user