Skip to content

Commit

Permalink
Make distcheck work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jul 22, 2017
1 parent 8f2e576 commit 1c11823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,10 @@ impl Step for Distcheck {
let _ = fs::remove_dir_all(&dir);
t!(fs::create_dir_all(&dir));

// Guarantee that these are built before we begin running.
builder.ensure(dist::PlainSourceTarball);
builder.ensure(dist::Src);

let mut cmd = Command::new("tar");
cmd.arg("-xzf")
.arg(builder.ensure(dist::PlainSourceTarball))
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,10 @@ impl Step for PlainSourceTarball {
let mut tarball = distdir(build).join(&format!("{}.tar.gz", plain_name));
tarball.set_extension(""); // strip .gz
tarball.set_extension(""); // strip .tar
if let Some(dir) = distdir(build).parent() {
if let Some(dir) = tarball.parent() {
t!(fs::create_dir_all(dir));
}
println!("running installer");
let mut cmd = rust_installer(builder);
cmd.arg("tarball")
.arg("--input").arg(&plain_name)
Expand Down

0 comments on commit 1c11823

Please sign in to comment.