mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
wrong loop
This commit is contained in:
parent
73fd0f5f3f
commit
2a00bdd3c9
1 changed files with 4 additions and 1 deletions
3
repo.py
3
repo.py
|
@ -262,10 +262,13 @@ def _update(overwrite=False):
|
||||||
if nlocation.exists():
|
if nlocation.exists():
|
||||||
logger.warning(f'Overwriting {nlocation}')
|
logger.warning(f'Overwriting {nlocation}')
|
||||||
else:
|
else:
|
||||||
|
should_continue = False
|
||||||
for nlocation in (pkg_nlocation, sig_nlocation):
|
for nlocation in (pkg_nlocation, sig_nlocation):
|
||||||
if nlocation.exists():
|
if nlocation.exists():
|
||||||
logger.warning('Same version is already in the repo.')
|
logger.warning('Same version is already in the repo.')
|
||||||
throw_away(pkg_to_add)
|
throw_away(pkg_to_add)
|
||||||
|
should_continue = True
|
||||||
|
if should_continue:
|
||||||
continue
|
continue
|
||||||
copyfile(pkg_to_add, pkg_nlocation)
|
copyfile(pkg_to_add, pkg_nlocation)
|
||||||
copyfile(sigfile, sig_nlocation)
|
copyfile(sigfile, sig_nlocation)
|
||||||
|
|
Loading…
Reference in a new issue