mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 04:04:15 +02:00
[fix][appimage] not detecting some updates
This commit is contained in:
@@ -23,6 +23,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- not stopping the upgrade process if a transaction error happens
|
- not stopping the upgrade process if a transaction error happens
|
||||||
- search not displaying installed packages that are no longer available on the databases ( e.g: indicator-application )
|
- search not displaying installed packages that are no longer available on the databases ( e.g: indicator-application )
|
||||||
- wrong dialog titles
|
- wrong dialog titles
|
||||||
|
- AppImage
|
||||||
|
- not detecting some updates ( e.g: RPCS3 )
|
||||||
|
|
||||||
## [0.9.0] - 2020-04-15
|
## [0.9.0] - 2020-04-15
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import sqlite3
|
|||||||
import subprocess
|
import subprocess
|
||||||
import traceback
|
import traceback
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from distutils.version import LooseVersion
|
||||||
from math import floor
|
from math import floor
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
@@ -216,7 +217,7 @@ 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 = tup[2] > app.version
|
app.update = LooseVersion(tup[2]) > LooseVersion(app.version) if tup[2] else False
|
||||||
|
|
||||||
if app.update:
|
if app.update:
|
||||||
app.latest_version = tup[2]
|
app.latest_version = tup[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user