diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2017-04-27 17:30:56 -0400 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2017-04-27 17:30:56 -0400 |
commit | ba874d67bb3007dc0d0560e6a0c4f8173e327552 (patch) | |
tree | 702f641662056906342afb6481d39adfe47508dc /python/servo/bootstrap_commands.py | |
parent | 7ff803e322a4488eb6b7f813b5f4f82abc49c6c1 (diff) | |
download | servo-ba874d67bb3007dc0d0560e6a0c4f8173e327552.tar.gz servo-ba874d67bb3007dc0d0560e6a0c4f8173e327552.zip |
Avoid searching for old nightlies in missing dirs
These directories may be missing (e.g. a first time build),
so don't try to look inside them for old nightlies if so.
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 28b5d4fa673..878f01a615e 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -323,6 +323,8 @@ class MachCommands(CommandBase): removing_anything = False for tool in ["rust", "cargo"]: base = path.join(self.context.sharedir, tool) + if not path.isdir(base): + continue for name in os.listdir(base): # We append `-alt` if LLVM assertions aren't enabled, # so use just the commit hash itself. |