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:
parent
99a7047173
commit
a07431bb34
3 changed files with 13 additions and 9 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue