mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-25 14:30: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)
|
throw_away(fpath)
|
||||||
return
|
return
|
||||||
newPath = Path('archive') / fpath.name
|
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)
|
logger.warning('Archiving %s', fpath)
|
||||||
fpath.rename(newPath)
|
fpath.rename(newPath)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue