Skip to content

Commit

Permalink
inform user before tasks that may take longer
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmehl committed Aug 13, 2024
1 parent 44ce397 commit 410d92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions complassist/_licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def _craft_single_spdx_expression(licenses: list[str]):

def get_outbound_candidate(sbom_path: str, simplify: bool = True) -> dict[str, str | list[str]]:
"""Get license outbound candidates from an SBOM"""
logging.info("Extracting, simplifying and validating found licenses. This can take a while")
licenses_in_sbom = list_all_licenses(sbom_path, use_flict=simplify)

# Check whether all licenses are valid SPDX expressions
Expand All @@ -98,6 +99,7 @@ def get_outbound_candidate(sbom_path: str, simplify: bool = True) -> dict[str, s
logging.debug("Simplified licenses expression: %s", expression)

# Get outbound candidate
logging.info("Calculating possible outbound candidates")
outbound_candidate: str = flict_outbound_candidate(expression, output_format="text")

return {
Expand Down

0 comments on commit 410d92c

Please sign in to comment.