From bd5d7a2647852dba5f8f20f1906dd987664ceb32 Mon Sep 17 00:00:00 2001 From: Jordan ERNST Date: Fri, 6 May 2022 15:43:13 +0200 Subject: [PATCH] Fix: is_gz --- pendora-box.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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():