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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py
index aa64060ecaa..54d620d9750 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -308,7 +308,10 @@ class MachCommands(CommandBase):
stdout, _ = cmd.communicate()
for line in stdout.splitlines():
if line.startswith(b"+") and not line.startswith(b"+++"):
- to_keep.add(line[1:])
+ line = line[len(b"+"):]
+ if line.startswith(b"nightly-"):
+ line = line[len(b"nightly-"):]
+ to_keep.add(line)
removing_anything = False
for tool in ["rust", "cargo"]: