mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 04:44:15 +02:00
[flatpak] fix -> not properly checking the return result when setting the default remotes at the system level
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user