mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Make distcheck work again.
This commit is contained in:
parent
8f2e576cb3
commit
1c118231ad
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user