repo.py: bug fix

This commit is contained in:
JerryXiao 2019-04-02 22:35:40 +08:00
parent 3984d68a6a
commit 7e09119263
Signed by: Jerry
GPG Key ID: 9D9CE43650FF2BAA
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def repo_add(fpaths):
assert issubclass(type(fpath), os.PathLike) and \
fpath.name.endswith(f'.pkg.tar.{PKG_COMPRESSION}')
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):
assert issubclass(type(fpath), os.PathLike)