servo: Merge #4813 - Fix the fix of the fix for fixing docs (from Manishearth:fix-fix-fix-doc); r=Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 4622961d01533fbc9c310c485c98546724be0eea
This commit is contained in:
Manish Goregaokar 2015-02-03 04:21:50 -07:00
Родитель 417e07e36b
Коммит 115d2a2354
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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)