Skip to content

Commit 6962f8b

Browse files
committed
Support licenses when ScanCode is not installed
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 6ccff2b commit 6962f8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

etc/scripts/utils_thirdparty.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3089,5 +3089,6 @@ def compute_normalized_license_expression(declared_licenses):
30893089

30903090
return pypi.compute_normalized_license(declared_licenses)
30913091
except ImportError:
3092-
# Scancode is not installed, we join all license strings and return it
3093-
return " ".join(declared_licenses).lower()
3092+
# Scancode is not installed, clean and join all the licenses
3093+
lics = [python_safe_name(l).lower() for l in declared_licenses]
3094+
return " AND ".join(lics).lower()

0 commit comments

Comments
 (0)