about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-05-08 14:57:57 -0700
committerbors <bors@rust-lang.org>2016-05-08 14:57:57 -0700
commit6974800c6b3733beb3aea31a0994d0c47c7a76c9 (patch)
tree7d4b5163ec2121a21c5d340a10bf98dc86aeb330 /src/rustllvm/RustWrapper.cpp
parentebe6da34ffc72a701f4189ef7be5ab2c1cb6e8c9 (diff)
parent6bce110c3e6a931fe1bd79c640e9d29a744f0e8f (diff)
downloadrust-6974800c6b3733beb3aea31a0994d0c47c7a76c9.tar.gz
rust-6974800c6b3733beb3aea31a0994d0c47c7a76c9.zip
Auto merge of #33288 - cyplo:32834_retry_download, r=alexcrichton
Get a file during bootstrap to a temp location first.

When downloading a file in the bootstrap phase - get it to a temp
location first. Verify it there and only if downloaded properly move it
to the `cache` directory.

This should prevent `make` being stuck if the download was interrupted
or otherwise corrupted, as per discussion in #32834

The temporary files are deleted in case of an exception.

I was looking for some unit/integration tests around this and couldn't find any - presumably because this is being tested by just Travis launching it ? Let me know if it would be good to try to write tests around this. Thanks !
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions