diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-10-11 15:36:52 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-10-11 15:36:52 +0200 |
commit | 3bf9d6ee9eed7c3aa51dcec1506d2b714a7253ef (patch) | |
tree | 64e3b6d0d8edc32c9a4e1b44da33796100c833f3 /python/servo/bootstrap_commands.py | |
parent | b1c7a2fa6dd94bde092bc4d9baed456e7a8bf45b (diff) | |
download | servo-3bf9d6ee9eed7c3aa51dcec1506d2b714a7253ef.tar.gz servo-3bf9d6ee9eed7c3aa51dcec1506d2b714a7253ef.zip |
mach clean-nightlies: fix removing cargo versioned by rust commit
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |