[appimage] fix: displaying updates without the associated download URL for some applications

This commit is contained in:
Vinicius Moreira
2021-11-17 15:49:10 -03:00
parent 46a3b46652
commit e930a97966
2 changed files with 16 additions and 9 deletions

View File

@@ -279,16 +279,18 @@ class AppImageManager(SoftwareManager):
if app.name.lower() == tup[0].lower() and (not app.github or app.github.lower() == tup[1].lower()):
continuous_version = app.version == 'continuous'
continuous_update = tup[2] == 'continuous'
if continuous_version and not continuous_update:
app.update = True
elif continuous_update and not continuous_version:
app.update = False
else:
try:
app.update = parse_version(tup[2]) > parse_version(app.version) if tup[2] else False
except:
if tup[3]:
if continuous_version and not continuous_update:
app.update = True
elif continuous_update and not continuous_version:
app.update = False
traceback.print_exc()
else:
try:
app.update = parse_version(tup[2]) > parse_version(app.version) if tup[2] else False
except:
app.update = False
traceback.print_exc()
if app.update:
app.latest_version = tup[2]