mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 23:34:17 +02:00
fix: flatpak installation warning errors handling
This commit is contained in:
@@ -118,7 +118,9 @@ class FlatpakManager(SoftwareManager):
|
|||||||
commit = commits[commit_idx + 1]
|
commit = commits[commit_idx + 1]
|
||||||
watcher.change_substatus(self.i18n['flatpak.downgrade.reverting'])
|
watcher.change_substatus(self.i18n['flatpak.downgrade.reverting'])
|
||||||
watcher.change_progress(50)
|
watcher.change_progress(50)
|
||||||
success = ProcessHandler(watcher).handle(SystemProcess(subproc=flatpak.downgrade(pkg.ref, commit, root_password), success_phrases=['Changes complete.', 'Updates complete.'], wrong_error_phrase='Warning:'))
|
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)
|
watcher.change_progress(100)
|
||||||
return success
|
return success
|
||||||
|
|
||||||
@@ -153,7 +155,7 @@ class FlatpakManager(SoftwareManager):
|
|||||||
return PackageHistory(pkg=pkg, history=commits, pkg_status_idx=status_idx)
|
return PackageHistory(pkg=pkg, history=commits, pkg_status_idx=status_idx)
|
||||||
|
|
||||||
def install(self, pkg: FlatpakApplication, root_password: str, watcher: ProcessWatcher) -> bool:
|
def install(self, pkg: FlatpakApplication, root_password: str, watcher: ProcessWatcher) -> bool:
|
||||||
res = ProcessHandler(watcher).handle(SystemProcess(subproc=flatpak.install(pkg.id, pkg.origin)))
|
res = ProcessHandler(watcher).handle(SystemProcess(subproc=flatpak.install(pkg.id, pkg.origin), wrong_error_phrase='Warning'))
|
||||||
|
|
||||||
if res:
|
if res:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user