Skip to content

Commit

Permalink
Do not install openscap-engine-sce as a part of the script
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Oct 23, 2024
1 parent 008d333 commit 4383299
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions utils/oscap-bootc
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ def ensure_sce_installed():
query_cmd = ["rpm", "-q", "openscap-engine-sce"]
query_process = subprocess.run(query_cmd, capture_output=True)
if query_process.returncode != 0:
install_cmd = ["dnf", "-y", "install", "openscap-engine-sce"]
try:
subprocess.run(install_cmd, check=True, capture_output=True)
except subprocess.CalledProcessError as e:
print(e.stderr.decode("utf-8"), file=sys.stderr)
raise RuntimeError(
"The script requires to have the openscap-engine-sce package "
"installed.")


def add_args(option_args_list, cmd):
Expand Down

0 comments on commit 4383299

Please sign in to comment.