From a3c15910d4c010f7d6001c71b9538084c89b3f47 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 9 Apr 2019 21:26:34 +0800 Subject: [PATCH] fix repod bugs --- repod.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/repod.py b/repod.py index aa548d6..1c7e66a 100755 --- a/repod.py +++ b/repod.py @@ -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