From 676eaa87445fbf08c2d97a776c3402c8ff5e7dac1b81f2b720d70b77499dbe22 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 8 Sep 2015 07:58:58 +0000 Subject: [PATCH] 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 --- 0000-hotfix.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/0000-hotfix.patch b/0000-hotfix.patch index 36bd1b5..c5ae2a7 100644 --- a/0000-hotfix.patch +++ b/0000-hotfix.patch @@ -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