From af7851c694866eb3b075dfa68fd619e9064439a3 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 22 Apr 2020 15:21:12 -0300 Subject: [PATCH] [fix][appimage] not detecting some updates --- CHANGELOG.md | 2 ++ bauh/gems/appimage/controller.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fc67751..aa3fb925 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index 99f5a6f0..43131ffe 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -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]