mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
mach clean-nightlies: fix removing cargo versioned by rust commit
This commit is contained in:
parent
b1c7a2fa6d
commit
3bf9d6ee9e
1 changed files with 1 additions and 1 deletions
|
@ -314,6 +314,7 @@ class MachCommands(CommandBase):
|
||||||
if not path.isdir(base):
|
if not path.isdir(base):
|
||||||
continue
|
continue
|
||||||
for name in os.listdir(base):
|
for name in os.listdir(base):
|
||||||
|
full_path = path.join(base, name)
|
||||||
if name.startswith("rust-"):
|
if name.startswith("rust-"):
|
||||||
name = name[len("rust-"):]
|
name = name[len("rust-"):]
|
||||||
# We append `-alt` if LLVM assertions aren't enabled,
|
# We append `-alt` if LLVM assertions aren't enabled,
|
||||||
|
@ -322,7 +323,6 @@ class MachCommands(CommandBase):
|
||||||
# but won't remove too many nightlies.
|
# but won't remove too many nightlies.
|
||||||
if name.partition('-')[0] not in to_keep:
|
if name.partition('-')[0] not in to_keep:
|
||||||
removing_anything = True
|
removing_anything = True
|
||||||
full_path = path.join(base, name)
|
|
||||||
if force:
|
if force:
|
||||||
print("Removing {}".format(full_path))
|
print("Removing {}".format(full_path))
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue