Fix: is_gz
This commit is contained in:
parent
e8eb9803d8
commit
bd5d7a2647
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user