diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-03 00:14:45 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-03 00:14:45 +0530 |
commit | a3cab14183f63dd136f75d49fe5583760daaea30 (patch) | |
tree | 728a1c567c7d54f9255145c9428fd4ea4a12894a /python/servo/post_build_commands.py | |
parent | 755adf0ddefb060007c0319655f994445aea4709 (diff) | |
download | servo-a3cab14183f63dd136f75d49fe5583760daaea30.tar.gz servo-a3cab14183f63dd136f75d49fe5583760daaea30.zip |
Fix doc upload
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r-- | python/servo/post_build_commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index ee9987358ba..ccb78a9fd1c 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -78,7 +78,9 @@ class MachCommands(CommandBase): help="Command-line arguments to be passed through to cargo doc") def doc(self, params): self.ensure_bootstrapped() - + if not path.exists(path.join( + self.config["tools"]["rust-root"], "doc")): + Registrar.dispatch("bootstrap-rust-docs", context=self.context) rust_docs = path.join(self.config["tools"]["rust-root"], "doc") docs = path.join( self.context.topdir, "components", "servo", "target", "doc") |