Initial code commit
[armband.git] / patches / fuel-main / 0003-Follow-redirects.patch
1 From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
2 Date: Tue, 1 Mar 2016 09:35:24 +0100
3 Subject: [PATCH] Follow redirects
4
5 ---
6  config.mk | 2 +-
7  1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/config.mk b/config.mk
10 index ae4766b..2a99278 100644
11 --- a/config.mk
12 +++ b/config.mk
13 @@ -271,7 +271,7 @@ USE_PREDEFINED_FUEL_LIB_PUPPET_MODULES?=
14  
15  # If the URL given ended with target.txt then is't a pointer to a snapshot that
16  # should be unlinked. If it is not - return it as is.
17 -expand_repo_url=$(shell url=$1; echo $${url} | grep -q -e '.*\.target\.txt$$' && echo "$${url%/*}/$$(curl -sSf $$url | head -1)/x86_64/" || echo $${url})
18 +expand_repo_url=$(shell url=$1; echo $${url} | grep -q -e '.*\.target\.txt$$' && echo "$${url%/*}/$$(curl -sSfL $$url | head -1)/x86_64/" || echo $${url})
19  
20  # Expand repo URLs now
21  #MIRROR_CENTOS:=$(call expand_repo_url,$(MIRROR_CENTOS))
22 -- 
23 1.9.1
24