Skip to content

Commit

Permalink
don't delete build.log file on success (#352)
Browse files Browse the repository at this point in the history
Closes #347.
  • Loading branch information
stevengj authored and KristofferC committed Jun 12, 2018
1 parent 158190c commit ae88856
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stdlib/Pkg/src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,12 @@ function build_versions(ctx::Context, uuids::Vector{UUID}; might_need_to_resolve
--eval $code
```
run_build = () -> begin
open(log_file, "w") do log
ok = open(log_file, "w") do log
success(pipeline(cmd, stdout=log, stderr=log))
end ? Base.rm(log_file, force=true) :
end
if !ok
@error("Error building `$name`; see log file for further info")
end
end
with_dependencies_loadable_at_toplevel(ctx, PackageSpec(name, uuid, version); might_need_to_resolve=might_need_to_resolve) do
run_build()
Expand Down

0 comments on commit ae88856

Please sign in to comment.