From 98140a98dcdcbeafa7ece1cc4c5963a3cb758f94 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 6 Aug 2019 15:46:40 -0300 Subject: [PATCH] fix: flatpak dependency --- CHANGELOG.md | 4 ++++ fpakman/core/flatpak/controller.py | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6047c153..786987c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.5.1] +### Fixes: +- flatpak dependency + ## [0.5.0] - 2019-08-06 ### Improvements - search results sorting takes an average of 35% less time, reaching 60% in some scenarios diff --git a/fpakman/core/flatpak/controller.py b/fpakman/core/flatpak/controller.py index 710d70f8..f1d64b55 100644 --- a/fpakman/core/flatpak/controller.py +++ b/fpakman/core/flatpak/controller.py @@ -181,8 +181,9 @@ class FlatpakManager(ApplicationManager): return updates def list_warnings(self) -> List[str]: - if not flatpak.has_remotes_set(): - return [self.locale_keys['flatpak.notification.no_remotes']] + if flatpak.is_installed(): + if not flatpak.has_remotes_set(): + return [self.locale_keys['flatpak.notification.no_remotes']] def list_suggestions(self, limit: int) -> List[FlatpakApplication]: