diff --git a/plugins/bootc.py b/plugins/bootc.py index 055e6a6a..75c2f015 100644 --- a/plugins/bootc.py +++ b/plugins/bootc.py @@ -9,6 +9,7 @@ import dnf import logging import subprocess +import sys _, P_ = dnf.i18n.translation("dnf-plugin-bootc") logger = logging.getLogger("dnf.plugin") @@ -112,16 +113,6 @@ def configure(self): self.extargs.append("--sysroot=%s" % self.opts.installroot) def run(self): - # combine stdout and stderr; capture text output - proc = subprocess.Popen( - self.extargs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True - ) - - # stdout and stderr will be combined in stdout, err will be None here - (out, err) = proc.communicate() - + proc = subprocess.Popen(self.extargs, stdout=sys.stdout, stderr=sys.stderr) if proc.returncode != 0: - logger.critical(out) raise dnf.cli.CliError - else: - logger.info(out)