[aur] fix update version check | [table] not showing update versions for some scenarios

This commit is contained in:
Vinicius Moreira
2019-10-11 11:01:12 -03:00
parent 1de85e2fa4
commit 37e51a3b2b
6 changed files with 42 additions and 39 deletions

View File

@@ -298,7 +298,7 @@ class AppsTable(QTableWidget):
label_version.setStyleSheet("color: #20A435; font-weight: bold")
tooltip = self.i18n['version.installed_outdated']
if pkg.model.installed and pkg.model.update and pkg.model.version and pkg.model.latest_version and pkg.model.version < pkg.model.latest_version:
if pkg.model.installed and pkg.model.update and pkg.model.version and pkg.model.latest_version and pkg.model.version != pkg.model.latest_version:
tooltip = '{}. {}: {}'.format(tooltip, self.i18n['version.latest'], pkg.model.latest_version)
label_version.setText(label_version.text() + ' > {}'.format(pkg.model.latest_version))