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 5, 2024
1 parent 8dda195 commit a9ca990
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -67,6 +67,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 @@ -159,6 +160,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
4 changes: 3 additions & 1 deletion src/repository/opamDownload.ml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ 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 ~auto_clean:false "dl" in
OpamProcess.Job.finally (fun () -> OpamSystem.remove_file stdout) @@ fun () ->
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 a9ca990

Please sign in to comment.