osbuild-depsolve-dnf: allow passing custom license index db file

Allow passing a custom license index db file for SBOM generation by
specifying it in the solver configuration.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-02-04 18:14:22 +01:00 committed by Tomáš Hozza
parent 99a7047173
commit a07431bb34
3 changed files with 13 additions and 9 deletions

View file

@ -59,7 +59,7 @@ def solve(request, cache_dir):
with tempfile.TemporaryDirectory() as persistdir:
try:
solver = Solver(request, persistdir, cache_dir)
solver = Solver(request, persistdir, cache_dir, config.get("license_index_path"))
if command == "dump":
result = solver.dump()
elif command == "depsolve":