mirror of
https://github.com/truenas/scale-build.git
synced 2026-02-15 07:29:12 +00:00
Properly cleanup old manifest from the cloned /data directory
This commit is contained in:
@@ -464,12 +464,14 @@ def main():
|
||||
for excluded in data_exclude:
|
||||
remove = f"{root}/{excluded}"
|
||||
try:
|
||||
shutil.rmtree(remove, True)
|
||||
shutil.rmtree(remove)
|
||||
except NotADirectoryError:
|
||||
try:
|
||||
os.unlink(remove)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
exclude_list = []
|
||||
for walk_root, dirs, files in os.walk(root):
|
||||
|
||||
Reference in New Issue
Block a user