aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r--python/servo/bootstrap_commands.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py
index 593fd6cb634..5d09fadb806 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -317,11 +317,9 @@ class MachCommands(CommandBase):
full_path = path.join(base, name)
if name.startswith("rust-"):
name = name[len("rust-"):]
- # We append `-alt` if LLVM assertions aren't enabled,
- # so use just the commit hash itself.
- # This may occasionally leave an extra nightly behind
- # but won't remove too many nightlies.
- if name.partition('-')[0] not in to_keep:
+ if name.endswith("-alt"):
+ name = name[:-len("-alt")]
+ if name not in to_keep:
removing_anything = True
if force:
print("Removing {}".format(full_path))