Skip to content

Commit

Permalink
Fix synchronization of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Apr 3, 2024
1 parent 4f839d6 commit b3c1249
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,12 @@ impl Context {
let tarball_prefix = format!("rust-docs-{}-{}", version, target);
let tarball = format!("{}.tar.gz", self.dl_dir().join(&tarball_prefix).display());
let tarball_dir = format!("{}/rust-docs/share/doc/rust/html", tarball_prefix);

// The `m` flag touches all extracted files, therefore setting their modification time
// to the current date. This will cause the sync to overwrite all remote files with the
// local files.
run(Command::new("tar")
.arg("xf")
.arg("xfm")
.arg(&tarball)
.arg("--strip-components=6")
.arg(&tarball_dir)
Expand Down

0 comments on commit b3c1249

Please sign in to comment.