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

View file

@ -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)