mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-25 06:20:40 +08:00
repo.py: allow overwrite old archive
This commit is contained in:
parent
df266b9ace
commit
61787e30d9
1 changed files with 3 additions and 1 deletions
4
repo.py
4
repo.py
|
@ -98,7 +98,9 @@ def archive_pkg(fpath):
|
|||
throw_away(fpath)
|
||||
return
|
||||
newPath = Path('archive') / fpath.name
|
||||
assert not newPath.exists()
|
||||
if newPath.exists():
|
||||
logger.warning(f'Removing old archive {newPath}')
|
||||
throw_away(newPath)
|
||||
logger.warning('Archiving %s', fpath)
|
||||
fpath.rename(newPath)
|
||||
|
||||
|
|
Loading…
Reference in a new issue