Skip to content

Commit

Permalink
curl: separate output from stdout and stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Jun 4, 2024
1 parent 550da2b commit 701b8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ users)

## Repository
* Fix download URLs containing invalid characters on Windows (e.g. the ? character in `?full_index=1`) [#5921 @dra27]
* [BUG] Fix curl failures - the progress meter can become interleaved with the status code on Windows [#5984 @dra27 @kit-ty-kate @rjbou]

## Lock

Expand Down Expand Up @@ -153,6 +154,7 @@ users)
* `OpamClient.init` and `OpamClient.reinit`: now can have additional cygwin packages to install [#5930 @moyodiallo]

## opam-repository
* `OpamDownload.download_command`: separate output from stdout and stderr [#5984 @kit-ty-kate]

## opam-state

Expand Down
3 changes: 2 additions & 1 deletion src/repository/opamDownload.ml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ let download_command ~compress ?checksum ~url ~dst () =
OpamConsole.error_and_exit `Configuration_error
"Empty custom download command"
in
OpamSystem.make_command ~allow_stdin:false cmd args @@> tool_return url
let stdout = OpamSystem.temp_file "dl" in
OpamSystem.make_command ~allow_stdin:false ~stdout cmd args @@> tool_return url

let really_download
?(quiet=false) ~overwrite ?(compress=false) ?checksum ?(validate=true)
Expand Down

0 comments on commit 701b8f4

Please sign in to comment.