mirror of
https://github.com/servo/servo.git
synced 2025-06-26 01:54:33 +01:00
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.
This commit is contained in:
parent
7ff803e322
commit
ba874d67bb
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue