From 627c1628c1ae38ef458330391cec1d3538b5fed8 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Tue, 1 Oct 2024 21:03:59 +0000 Subject: [PATCH] bootc: Exit with rpm-ostree's return code This is necessary if we want to support rpm-ostree's `--pending-exit-77` flag. Maybe a cleaner solution could be to bring over libdnf5's `SilentCommandExitError(int exit_code)`. --- plugins/bootc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/bootc.py b/plugins/bootc.py index 75c2f015..9870ce26 100644 --- a/plugins/bootc.py +++ b/plugins/bootc.py @@ -114,5 +114,4 @@ def configure(self): def run(self): proc = subprocess.Popen(self.extargs, stdout=sys.stdout, stderr=sys.stderr) - if proc.returncode != 0: - raise dnf.cli.CliError + sys.exit(proc.returncode)