Skip to content

Commit 2a469a5

Browse files
KobzolMark-Simulacrum
authored andcommitted
Fix synchronization of docs
1 parent 4f839d6 commit 2a469a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,12 @@ impl Context {
468468
let tarball_prefix = format!("rust-docs-{}-{}", version, target);
469469
let tarball = format!("{}.tar.gz", self.dl_dir().join(&tarball_prefix).display());
470470
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.
471475
run(Command::new("tar")
472-
.arg("xf")
476+
.arg("xfm")
473477
.arg(&tarball)
474478
.arg("--strip-components=6")
475479
.arg(&tarball_dir)

0 commit comments

Comments
 (0)