fix: flatpak downgrading warning errors handling

This commit is contained in:
Vinicius Moreira
2019-09-24 15:22:45 -03:00
parent 2a84ff4c32
commit fc85bbf262

View File

@@ -118,7 +118,7 @@ class FlatpakManager(SoftwareManager):
commit = commits[commit_idx + 1]
watcher.change_substatus(self.i18n['flatpak.downgrade.reverting'])
watcher.change_progress(50)
success = ProcessHandler(watcher).handle(SystemProcess(subproc=flatpak.downgrade(pkg.ref, commit, root_password), success_phrases=['Changes complete.', 'Updates complete.']))
success = ProcessHandler(watcher).handle(SystemProcess(subproc=flatpak.downgrade(pkg.ref, commit, root_password), success_phrases=['Changes complete.', 'Updates complete.'], wrong_error_phrase='Warning:'))
watcher.change_progress(100)
return success