rustbuild: Update nightly date

Also fix a bug where we didn't clean out previous nightlies
This commit is contained in:
Alex Crichton
2016-02-25 09:29:02 -08:00
parent 93a9ab1a1b
commit 17ae752093
3 changed files with 12 additions and 8 deletions

View File

@@ -73,6 +73,7 @@ class RustBuild:
if self.rustc().startswith(self.bin_root()) and \
(not os.path.exists(self.rustc()) or self.rustc_out_of_date()):
shutil.rmtree(self.bin_root())
filename = "rust-std-nightly-" + self.build + ".tar.gz"
url = "https://static.rust-lang.org/dist/" + self.snap_rustc_date()
tarball = os.path.join(rustc_cache, filename)