mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-26 06:50:41 +08:00
repo.py: bug fix
This commit is contained in:
parent
3984d68a6a
commit
7e09119263
1 changed files with 1 additions and 1 deletions
2
repo.py
2
repo.py
|
@ -59,7 +59,7 @@ def repo_add(fpaths):
|
||||||
assert issubclass(type(fpath), os.PathLike) and \
|
assert issubclass(type(fpath), os.PathLike) and \
|
||||||
fpath.name.endswith(f'.pkg.tar.{PKG_COMPRESSION}')
|
fpath.name.endswith(f'.pkg.tar.{PKG_COMPRESSION}')
|
||||||
dbpath = fpath.parent / f'{REPO_NAME}.db.tar.gz'
|
dbpath = fpath.parent / f'{REPO_NAME}.db.tar.gz'
|
||||||
return bash(f'{REPO_CMD} {dbpath} {" ".join([str(fpath for fpath in fpaths)])}')
|
return bash(f'{REPO_CMD} {dbpath} {" ".join([str(fpath) for fpath in fpaths])}')
|
||||||
|
|
||||||
def throw_away(fpath):
|
def throw_away(fpath):
|
||||||
assert issubclass(type(fpath), os.PathLike)
|
assert issubclass(type(fpath), os.PathLike)
|
||||||
|
|
Loading…
Reference in a new issue