solver: include "solver" key in the dnfjson reply

This commit includes the used sovler in the dnfjson reply. This
is mostly information (e.g. in service logs) but also useful in
tests to ensure that the expected solver was really run.

Note that this needs https://github.com/osbuild/images/pull/723
first.
This commit is contained in:
Michael Vogt 2024-08-01 09:14:15 +02:00
parent b516bdca93
commit ae72480612
3 changed files with 11 additions and 0 deletions

View file

@ -306,6 +306,7 @@ class DNF(SolverBase):
"sslclientcert": repo.sslclientcert,
}
response = {
"solver": "dnf",
"packages": packages,
"repos": repositories,
}

View file

@ -429,6 +429,7 @@ class DNF5(SolverBase):
"sslcacert": get_string_option(repo_cfg.get_sslcacert_option()),
}
response = {
"solver": "dnf5",
"packages": packages,
"repos": repositories,
}