aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-10-20 10:06:31 -0500
committerGitHub <noreply@github.com>2017-10-20 10:06:31 -0500
commitd4bdb8b2936d3b47841103fd5c843860ef5c7474 (patch)
treea43835e76585a0d157b6e6d67eaa191c6b19a6df /python/servo/bootstrap_commands.py
parent91077ee4185b4917f5f67bf7ebe7ea03ca3e7241 (diff)
parent8169383485718b2ea65510934a985985aef47b38 (diff)
downloadservo-d4bdb8b2936d3b47841103fd5c843860ef5c7474.tar.gz
servo-d4bdb8b2936d3b47841103fd5c843860ef5c7474.zip
Auto merge of #18953 - servo:keep, r=jdm
Fix './mach clean-nightlies --keep 3' not keeping anything. This affects CI, re-downloading Nightly for every build. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18953) <!-- Reviewable:end -->
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"]: