From 75e16056c0c6d8b06fd7f099ffd282f892de7541 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 5 Nov 2021 14:17:03 -0300 Subject: [PATCH] [flatpak] fix: nost listing updates for Flatpak 1.2 --- CHANGELOG.md | 1 + bauh/gems/flatpak/controller.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a7b44a4..fa1b52bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - not displaying the filter for any kind of file (*) when updating imported AppImages [#193](https://github.com/vinifmor/bauh/issues/193) - Flatpak - not listing installed packages for Flatpak 1.2 [#201](https://github.com/vinifmor/bauh/issues/201) + - not listing updates for Flatpak 1.2 - UI - always requesting the password on the initialization dialog when launched by the root user [#195](https://github.com/vinifmor/bauh/issues/195) diff --git a/bauh/gems/flatpak/controller.py b/bauh/gems/flatpak/controller.py index 10c8ed0e..56bd9633 100644 --- a/bauh/gems/flatpak/controller.py +++ b/bauh/gems/flatpak/controller.py @@ -22,7 +22,7 @@ from bauh.commons.boot import CreateConfigFile from bauh.commons.html import strip_html, bold from bauh.commons.system import ProcessHandler from bauh.gems.flatpak import flatpak, SUGGESTIONS_FILE, CONFIG_FILE, UPDATES_IGNORED_FILE, CONFIG_DIR, EXPORTS_PATH, \ - get_icon_path, VERSION_1_5, VERSION_1_4 + get_icon_path, VERSION_1_5, VERSION_1_2 from bauh.gems.flatpak.config import FlatpakConfigManager from bauh.gems.flatpak.constants import FLATHUB_API_URL from bauh.gems.flatpak.model import FlatpakApplication @@ -143,7 +143,7 @@ class FlatpakManager(SoftwareManager): models.append(model) if update_map and (update_map['full'] or update_map['partial']): - if version >= VERSION_1_4: + if version >= VERSION_1_2: update_id = '{}/{}/{}'.format(app_json['id'], app_json['branch'], app_json['installation']) if update_map['full'] and update_id in update_map['full']: