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: if fname == self.fname:
try: try:
REPO_ROOT = Path('repo') update_path = Path('updates')
update_path = REPO_ROOT / 'updates'
pkg_found = False pkg_found = False
sig_found = False sig_found = False
for fpath in update_path.iterdir(): for fpath in update_path.iterdir():
if fpath.is_dir: if fpath.is_dir():
continue continue
if fpath.name == self.fname: if fpath.name == self.fname:
pkg_found = fpath pkg_found = fpath