Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcalm/hint.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/calm/hint.py b/calm/hint.py
index 71fa7b9..c202f8c 100755
--- a/calm/hint.py
+++ b/calm/hint.py
@@ -297,6 +297,10 @@ def hint_file_parse(fn, kind, strict=False):
# license must be a valid spdx license expression
if key == 'license' and licensing:
+ # first, normalize whitespace in license, so we don't
+ # get spurious normalization warnings over whitespace
+ value = re.sub(r'\s+', ' ', value)
+
try:
licensing.parse(value, strict=True)
le = licensing.validate(value, strict=True)