From 02c3ce88ded398556acc5f59ae7d532eea4713a2 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Tue, 23 Apr 2019 12:31:29 +0200 Subject: [PATCH] Fix download upper constraints We use the url from tox.ini to download the upper constraints and recently that has changed to a redirect and curl doesn't correctly follows redirects by default but stops at the first page. Adding -L option to curl command makes curl follows the redirect until the final location is found and should allow the correct file to be downloaded. Change-Id: I25c724ffe189d414643c910be0ef61c550f802b7 (cherry picked from commit a88e61959bc41a10de5f58f8a1ffc34ae6f1e822) --- imagebuild/common/generate_upper_constraints.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagebuild/common/generate_upper_constraints.sh b/imagebuild/common/generate_upper_constraints.sh index 6d36d3298..966d0d6ee 100755 --- a/imagebuild/common/generate_upper_constraints.sh +++ b/imagebuild/common/generate_upper_constraints.sh @@ -31,7 +31,7 @@ download() { return 1 else log "Downloading from '${url}'" - curl ${url} -o "${destination}" + curl -L ${url} -o "${destination}" fi return 0 }