aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-19 17:09:09 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-19 17:10:24 +0200
commit8169383485718b2ea65510934a985985aef47b38 (patch)
tree9fbd27c574bbad60e7b18bdf8481cf2050789883 /python/servo/bootstrap_commands.py
parent6f52b331b8c6c38405964cdeacbc9f771c70b18c (diff)
downloadservo-8169383485718b2ea65510934a985985aef47b38.tar.gz
servo-8169383485718b2ea65510934a985985aef47b38.zip
Fix './mach clean-nightlies --keep 3' not keeping anything.
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 5d09fadb806..e02f0a4a7d4 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -306,7 +306,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"]: