mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 00:34:16 +02:00
[snap] feature -> allowing the user to install an application when a stable channel is not available
This commit is contained in:
@@ -100,7 +100,7 @@ class ProcessHandler:
|
||||
if self.watcher:
|
||||
self.watcher.print(msg)
|
||||
|
||||
def handle(self, process: SystemProcess) -> bool:
|
||||
def handle(self, process: SystemProcess, error_output: StringIO = None) -> bool:
|
||||
self._notify_watcher(' '.join(process.subproc.args) + '\n')
|
||||
|
||||
already_succeeded = False
|
||||
@@ -126,6 +126,9 @@ class ProcessHandler:
|
||||
if line:
|
||||
self._notify_watcher(line)
|
||||
|
||||
if error_output is not None:
|
||||
error_output.write(line)
|
||||
|
||||
if process.check_error_output:
|
||||
if process.wrong_error_phrase and process.wrong_error_phrase in line:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user