From 3bf9d6ee9eed7c3aa51dcec1506d2b714a7253ef Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 11 Oct 2017 15:36:52 +0200 Subject: mach clean-nightlies: fix removing cargo versioned by rust commit --- python/servo/bootstrap_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/servo/bootstrap_commands.py') diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index edaad4f6dbb..593fd6cb634 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -314,6 +314,7 @@ class MachCommands(CommandBase): if not path.isdir(base): continue for name in os.listdir(base): + full_path = path.join(base, name) if name.startswith("rust-"): name = name[len("rust-"):] # We append `-alt` if LLVM assertions aren't enabled, @@ -322,7 +323,6 @@ class MachCommands(CommandBase): # but won't remove too many nightlies. if name.partition('-')[0] not in to_keep: removing_anything = True - full_path = path.join(base, name) if force: print("Removing {}".format(full_path)) try: -- cgit v1.2.3