From 85a8e1d7dd410dd14f9a74674d2ffa5bddb5c265 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 eda757c6..8048bbe5 100644 --- a/plugins/bootc.py +++ b/plugins/bootc.py @@ -211,5 +211,4 @@ def configure(self): def run(self): proc = subprocess.Popen(self.extargs, stdout=sys.stdout, stderr=sys.stderr) proc.wait() - if proc.returncode != 0: - raise dnf.cli.CliError + sys.exit(proc.returncode)