mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00: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
|
||||
- search not displaying installed packages that are no longer available on the databases ( e.g: indicator-application )
|
||||
- wrong dialog titles
|
||||
- AppImage
|
||||
- not detecting some updates ( e.g: RPCS3 )
|
||||
|
||||
## [0.9.0] - 2020-04-15
|
||||
### Features
|
||||
|
||||
@@ -7,6 +7,7 @@ import sqlite3
|
||||
import subprocess
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
from distutils.version import LooseVersion
|
||||
from math import floor
|
||||
from pathlib import Path
|
||||
from threading import Lock
|
||||
@@ -216,7 +217,7 @@ class AppImageManager(SoftwareManager):
|
||||
for tup in cursor.fetchall():
|
||||
for app in res.installed:
|
||||
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:
|
||||
app.latest_version = tup[2]
|
||||
|
||||
Reference in New Issue
Block a user