Skip to content

Commit

Permalink
Touch unpacked rustc files too
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Apr 4, 2024
1 parent 72d51f4 commit 219ca7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,16 +503,18 @@ impl Context {
.success()
{
// Unpack the rustc documentation into the new directory.
// // Touch all files as well (see above for why).
run(Command::new("tar")
.arg("xf")
.arg("xfm")
.arg(&tarball)
.arg("--strip-components=7")
.arg(&tarball_dir_new)
.current_dir(&rustc_docs))?;
} else {
// Unpack the rustc documentation into the new directory.
// Touch all files as well (see above for why).
run(Command::new("tar")
.arg("xf")
.arg("xfm")
.arg(&tarball)
.arg("--strip-components=6")
.arg(&tarball_dir)
Expand Down

0 comments on commit 219ca7f

Please sign in to comment.