mirror of
https://github.com/servo/servo.git
synced 2025-07-08 16:03:40 +01:00
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 -->
This commit is contained in:
commit
d4bdb8b293
1 changed files with 4 additions and 1 deletions
|
@ -308,7 +308,10 @@ class MachCommands(CommandBase):
|
||||||
stdout, _ = cmd.communicate()
|
stdout, _ = cmd.communicate()
|
||||||
for line in stdout.splitlines():
|
for line in stdout.splitlines():
|
||||||
if line.startswith(b"+") and not line.startswith(b"+++"):
|
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
|
removing_anything = False
|
||||||
for tool in ["rust", "cargo"]:
|
for tool in ["rust", "cargo"]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue