[flatpak] fix -> not properly checking the return result when setting the default remotes at the system level

This commit is contained in:
Vinicius Moreira
2020-08-20 14:18:45 -03:00
parent a6cbfd4a3f
commit e06c677602
2 changed files with 2 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
<img src="https://raw.githubusercontent.com/vinifmor/bauh-files/master/pictures/releases/0.9.7/flatpak_refs.png">
</p>
- 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

View File

@@ -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)