Skip to content

Commit

Permalink
bootc: Exit with rpm-ostree's return code
Browse files Browse the repository at this point in the history
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)`.
  • Loading branch information
evan-goode committed Oct 8, 2024
1 parent 0d3e2b0 commit 85a8e1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/bootc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 85a8e1d

Please sign in to comment.