We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f839d6 commit 2a469a5Copy full SHA for 2a469a5
src/main.rs
@@ -468,8 +468,12 @@ impl Context {
468
let tarball_prefix = format!("rust-docs-{}-{}", version, target);
469
let tarball = format!("{}.tar.gz", self.dl_dir().join(&tarball_prefix).display());
470
let tarball_dir = format!("{}/rust-docs/share/doc/rust/html", tarball_prefix);
471
+
472
+ // The `m` flag touches all extracted files, therefore setting their modification time
473
+ // to the current date. This will cause the sync to overwrite all remote files with the
474
+ // local files.
475
run(Command::new("tar")
- .arg("xf")
476
+ .arg("xfm")
477
.arg(&tarball)
478
.arg("--strip-components=6")
479
.arg(&tarball_dir)
0 commit comments