From 5db2026621e8043872b8e48d66f9b6bf4cdc5eef Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 2 Oct 2019 11:09:25 -0300 Subject: [PATCH] fix: flatpak -> error when retrieving information ( Ubuntu 18.04 ) --- CHANGELOG.md | 2 ++ bauh/gems/flatpak/controller.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad7db91a..fb1b0969 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - AUR: - Installed files available in the Info window - Improving Arch distro checking +- Flatpak: + - error when retrieving information ( Ubuntu 18.04 ) ### Fixes - Update-check daemon not showing notifications diff --git a/bauh/gems/flatpak/controller.py b/bauh/gems/flatpak/controller.py index 018b898f..ad9dc692 100644 --- a/bauh/gems/flatpak/controller.py +++ b/bauh/gems/flatpak/controller.py @@ -139,7 +139,10 @@ class FlatpakManager(SoftwareManager): app_info['name'] = app.name app_info['type'] = 'runtime' if app.runtime else 'app' app_info['description'] = strip_html(app.description) if app.description else '' - app_info['installed'] = app_info['installed'].replace('?', ' ') + + if app_info.get('installed'): + app_info['installed'] = app_info['installed'].replace('?', ' ') + return app_info def get_history(self, pkg: FlatpakApplication) -> PackageHistory: