fix repod bugs

This commit is contained in:
JerryXiao 2019-04-09 21:26:34 +08:00
parent c2dbc25673
commit a3c15910d4
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -75,12 +75,11 @@ class pushFm:
'''
if fname == self.fname:
try:
REPO_ROOT = Path('repo')
update_path = REPO_ROOT / 'updates'
update_path = Path('updates')
pkg_found = False
sig_found = False
for fpath in update_path.iterdir():
if fpath.is_dir:
if fpath.is_dir():
continue
if fpath.name == self.fname:
pkg_found = fpath