From e06c677602ab31d758dc5180015a448ea76d7fc3 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 20 Aug 2020 14:18:45 -0300 Subject: [PATCH] [flatpak] fix -> not properly checking the return result when setting the default remotes at the system level --- CHANGELOG.md | 1 + bauh/gems/flatpak/controller.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d9d67b5..5255730b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall) + - minor fixes - Snap - some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch) - UI diff --git a/bauh/gems/flatpak/controller.py b/bauh/gems/flatpak/controller.py index 31e6d8e2..34011d57 100644 --- a/bauh/gems/flatpak/controller.py +++ b/bauh/gems/flatpak/controller.py @@ -369,7 +369,7 @@ class FlatpakManager(SoftwareManager): watcher.print('Operation aborted') return TransactionResult(success=False, installed=[], removed=[]) else: - if not handler.handle_simple(flatpak.set_default_remotes('system', user_password)): + if not handler.handle_simple(flatpak.set_default_remotes('system', user_password))[0]: watcher.show_message(title=self.i18n['error'].capitalize(), body=self.i18n['flatpak.remotes.system_flathub.error'], type_=MessageType.ERROR)