curl: add -L to follow redirects
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:
parent
1ba5361b6f
commit
ae07747610
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue