mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Fix './mach clean-nightlies --keep 3' not keeping anything.
This commit is contained in:
parent
6f52b331b8
commit
8169383485
1 changed files with 4 additions and 1 deletions
|
@ -306,7 +306,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