diff --git a/pendora-box.py b/pendora-box.py index e22a987..614fcbc 100644 --- a/pendora-box.py +++ b/pendora-box.py @@ -99,8 +99,6 @@ def githubreleasesync(reponame, repoinfo, credz): filename = filename['filename'] filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version) localfile = Path('files').joinpath(Path(binpath).name) - if filename.endswith('.gz'): - is_gz = True print(f" * {localfile} ", end='') else: @@ -108,6 +106,11 @@ def githubreleasesync(reponame, repoinfo, credz): localfile = Path('files').joinpath(Path(filename).name) print(f" * {localfile} ", end='') + if filename.endswith('.gz'): + is_gz = True + else: + is_gz = False + urldl = f'https://github.com/{reponame}/releases/download/{last_version}/{filename}' if not localfile.exists():