auto merge of #4813 : Manishearth/servo/fix-fix-fix-doc, r=Ms2ger

This commit is contained in:
bors-servo 2015-02-03 04:21:50 -07:00
commit 4622961d01

View file

@ -127,7 +127,8 @@ class MachCommands(CommandBase):
print("Extracting Rust docs...")
temp_dir = path.join(hash_dir, "temp_docs")
shutil.rmtree(temp_dir)
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.rmtree(temp_dir)