Skip to content

Commit

Permalink
Auto merge of #7465 - alexcrichton:no-preserve, r=Eh2406
Browse files Browse the repository at this point in the history
Disable preserving mtimes on archives

These are just wasted syscalls for our purposes, no need to issue
updates to the modification/creation/access times of files we unpack!
  • Loading branch information
bors committed Oct 2, 2019
2 parents 589fa74 + 8c92e88 commit 053b767
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cargo/sources/registry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ impl<'cfg> RegistrySource<'cfg> {

let gz = GzDecoder::new(tarball);
let mut tar = Archive::new(gz);
tar.set_preserve_mtime(false);
let prefix = unpack_dir.file_name().unwrap();
let parent = unpack_dir.parent().unwrap();
for entry in tar.entries()? {
Expand Down

0 comments on commit 053b767

Please sign in to comment.