correct None value when repo is empty

This commit is contained in:
z4yx 2020-04-27 18:19:57 +08:00
parent c51e49061a
commit 645118339b

View File

@ -46,7 +46,7 @@ def calc_repo_size(path: Path):
print(f" {res[1]} packages, {res[0]} bytes in total", flush=True)
global REPO_STAT
REPO_STAT[str(path)] = res
REPO_STAT[str(path)] = res if res[1] > 0 else (0, 0) # res[0] can be None
def check_args(prop: str, lst: List[str]):