repo.py: symlink fix

This commit is contained in:
JerryXiao 2019-04-02 22:51:00 +08:00
parent 7e09119263
commit 1397bb4391
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -46,10 +46,7 @@ def checkenv():
dirs = [Path('updates/archive')] + [Path('www/') / arch for arch in ARCHS] dirs = [Path('updates/archive')] + [Path('www/') / arch for arch in ARCHS]
for mydir in dirs: for mydir in dirs:
mydir.mkdir(mode=0o755, exist_ok=True, parents=True) mydir.mkdir(mode=0o755, exist_ok=True, parents=True)
try: symlink(Path('www/archive'), '../updates/archive')
symlink(Path('www/archive'), 'updates/archive')
except FileExistsError:
pass
checkenv() checkenv()