1 From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
2 Date: Tue, 1 Mar 2016 09:35:24 +0100
3 Subject: [PATCH] Follow redirects
7 1 file changed, 1 insertion(+), 1 deletion(-)
9 diff --git a/config.mk b/config.mk
10 index ae4766b..2a99278 100644
13 @@ -271,7 +271,7 @@ USE_PREDEFINED_FUEL_LIB_PUPPET_MODULES?=
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})
20 # Expand repo URLs now
21 #MIRROR_CENTOS:=$(call expand_repo_url,$(MIRROR_CENTOS))