mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[improvement][appimage] able to update AppImages with continuous releases
This commit is contained in:
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
## [0.9.6] 2020
|
## [0.9.6] 2020
|
||||||
### Improvements
|
### Improvements
|
||||||
|
- AppImage
|
||||||
|
- able to update AppImages with continuous releases
|
||||||
- UI
|
- UI
|
||||||
- filters algorithm speed and sorting
|
- filters algorithm speed and sorting
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|||||||
@@ -223,7 +223,18 @@ class AppImageManager(SoftwareManager):
|
|||||||
for tup in cursor.fetchall():
|
for tup in cursor.fetchall():
|
||||||
for app in res.installed:
|
for app in res.installed:
|
||||||
if app.name.lower() == tup[0].lower() and (not app.github or app.github.lower() == tup[1].lower()):
|
if app.name.lower() == tup[0].lower() and (not app.github or app.github.lower() == tup[1].lower()):
|
||||||
app.update = LooseVersion(tup[2]) > LooseVersion(app.version) if tup[2] else False
|
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 = LooseVersion(tup[2]) > LooseVersion(app.version) if tup[2] else False
|
||||||
|
except:
|
||||||
|
app.update = False
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
if app.update:
|
if app.update:
|
||||||
app.latest_version = tup[2]
|
app.latest_version = tup[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user