curl: add -L to follow redirects
All checks were successful
CI via Tox / tox (pull_request) Successful in 1m27s
AI Code Review / ai-review (pull_request_target) Successful in 26s

It's possible, I guess, that the URL to a file we want to download
might redirect us. Let's follow redirects.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2026-04-07 11:18:47 -07:00
commit ae07747610

View file

@ -44,7 +44,7 @@ from urllib.parse import urlparse
# 3.12, and TypeAlias is deprecated since 3.12 and wasn't in 3.9
DepTuple = tuple[str, str, str]
CURLARGS = ("curl", "-s", "-f", "--retry-delay", "10", "--max-time", "300", "--retry", "5")
CURLARGS = ("curl", "-s", "-f", "-L", "--retry-delay", "10", "--max-time", "300", "--retry", "5")
# use a fresh temporary cache for each run to avoid collisions between
# runs and polluting the 'real' cache
# pylint: disable-next=consider-using-with