fix: conflict output in stderr

This commit is contained in:
Vinicius Moreira
2019-09-23 17:33:25 -03:00
parent dae63f3f24
commit 75577f0b94
2 changed files with 28 additions and 10 deletions

View File

@@ -501,9 +501,8 @@ class ArchManager(SoftwareManager):
handler.watcher.change_substatus(self.i18n['arch.checking.conflicts'].format(bold(pkgname)))
for check_out in new_root_subprocess(['pacman', '-U', pkgpath], root_password=root_password, cwd=pkgdir).stdout:
if check_out:
check_install_output.append(check_out.decode())
for check_out in SimpleProcess(['pacman', '-U', pkgpath], root_password=root_password, cwd=pkgdir).instance.stdout:
check_install_output.append(check_out.decode())
self._update_progress(handler.watcher, 70, change_progress)
if check_install_output and 'conflict' in check_install_output[-1]: