diff options
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 68edbdd38c8..b59b7fed929 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -79,7 +79,7 @@ class MachCommands(CommandBase): def bootstrap_rustc(self, force=False): rust_dir = path.join( self.context.sharedir, "rust", *self.rust_snapshot_path().split("/")) - if not force and path.exists(path.join(rust_dir, "bin", "rustc")): + if not force and path.exists(path.join(rust_dir, "rustc", "bin", "rustc")): print("Snapshot Rust compiler already downloaded.", end=" ") print("Use |bootstrap-rust --force| to download again.") return @@ -130,7 +130,9 @@ class MachCommands(CommandBase): if path.isdir(temp_dir): shutil.rmtree(temp_dir) extract(tgz_file, temp_dir) - shutil.move(path.join(temp_dir, docs_name.split("/")[1], "share", "doc", "rust", "html"), docs_dir) + shutil.move(path.join(temp_dir, docs_name.split("/")[1], + "rust-docs", "share", "doc", "rust", "html"), + docs_dir) shutil.rmtree(temp_dir) print("Rust docs ready.") |