diff options
| author | binarycat <binarycat@envs.net> | 2024-08-25 12:09:58 -0400 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2024-08-25 12:18:45 -0400 |
| commit | 44fac8934a3b92cc4bfb87dead31f90aa75683ee (patch) | |
| tree | 17a464d0e6f205c813e045ec5c176f544f412a69 /src/bootstrap/bootstrap.py | |
| parent | 56adf87213b22ef848fb8afd3b8180c0455456d7 (diff) | |
| download | rust-44fac8934a3b92cc4bfb87dead31f90aa75683ee.tar.gz rust-44fac8934a3b92cc4bfb87dead31f90aa75683ee.zip | |
explain the options curl passes to bootstrap
also fixes a discrepency where the rust side doesn't use -L must not be merged before #129134 docs are only on the rust side, since duplicated prose has a tendancy to get out-of-sync, and also because there are talks of removing the python script all together eventually.
Diffstat (limited to 'src/bootstrap/bootstrap.py')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index c19134b4594..1de010dc08a 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -115,6 +115,10 @@ def _download(path, url, probably_big, verbose, exception): extra_flags = [] if curl_version() > (7, 70): extra_flags = [ "--retry-all-errors" ] + # options should be kept in sync with + # src/bootstrap/src/core/download.rs + # for consistency. + # they are also more compreprensivly explained in that file. run(["curl", option] + extra_flags + [ "-L", # Follow redirect. "-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds |
