From 1397bb4391df4ff0a67ebd6b24295b300c36358e Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 2 Apr 2019 22:51:00 +0800 Subject: [PATCH] repo.py: symlink fix --- repo.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/repo.py b/repo.py index 21dc5d7..e5482d2 100755 --- a/repo.py +++ b/repo.py @@ -46,10 +46,7 @@ def checkenv(): dirs = [Path('updates/archive')] + [Path('www/') / arch for arch in ARCHS] for mydir in dirs: mydir.mkdir(mode=0o755, exist_ok=True, parents=True) - try: - symlink(Path('www/archive'), 'updates/archive') - except FileExistsError: - pass + symlink(Path('www/archive'), '../updates/archive') checkenv()