Skip to content

Commit

Permalink
fetcher: http: force CURL to follow redirects
Browse files Browse the repository at this point in the history
Add "-L" parameter to curl invocation, so it will follow server
redirects to an actual file.

Signed-off-by: Volodymyr Babchuk <[email protected]>
  • Loading branch information
lorc committed Jun 6, 2024
1 parent 00d899d commit 383c6a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moulin/fetchers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def get_fetcher(conf: YamlValue, build_dir: str, generator: ninja_syntax.Writer)

def gen_build_rules(generator: ninja_syntax.Writer):
"""Generate build rules using Ninja generator"""
generator.rule("curl_download", command="curl $url -o $out ", description="curl download $url")
generator.rule("curl_download",
command="curl -L $url -o $out ",
description="curl download $url")
generator.newline()


Expand Down

0 comments on commit 383c6a1

Please sign in to comment.