mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
ignore error of os.unlink
This commit is contained in:
parent
b08781e47a
commit
08791785e0
@ -166,8 +166,14 @@ def main():
|
||||
task_queue.put((url, dst_file, working_dir, updated))
|
||||
|
||||
if latest:
|
||||
os.unlink(repo_dir / "LatestRelease")
|
||||
os.symlink(name, repo_dir / "LatestRelease")
|
||||
try:
|
||||
os.unlink(repo_dir / "LatestRelease")
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
os.symlink(name, repo_dir / "LatestRelease")
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
for repo in args.repo:
|
||||
repo_dir = working_dir / Path(repo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user