diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-10-20 10:06:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 10:06:31 -0500 |
commit | d4bdb8b2936d3b47841103fd5c843860ef5c7474 (patch) | |
tree | a43835e76585a0d157b6e6d67eaa191c6b19a6df /python/servo/bootstrap_commands.py | |
parent | 91077ee4185b4917f5f67bf7ebe7ea03ca3e7241 (diff) | |
parent | 8169383485718b2ea65510934a985985aef47b38 (diff) | |
download | servo-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.py | 5 |
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"]: |