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:
authorJon Turney <jon.turney@dronecode.org.uk>2022-10-18 21:54:39 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2022-10-18 21:56:01 +0300
commit175aeb644de5e9271394d56176ba2de8cec2f082 (patch)
tree4fc7fdbb01ead96761434cc2bd0a0315cf9ffeb4
parent077992f51cd105612f72fd2eabc156a7733af055 (diff)
Turn license expression not normalized error into a warning
-rwxr-xr-xcalm/hint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/hint.py b/calm/hint.py
index ead719e..b3e9a70 100755
--- a/calm/hint.py
+++ b/calm/hint.py
@@ -306,7 +306,7 @@ def hint_file_parse(fn, kind, strict=False):
if not le.normalized_expression:
warnings.append('errors in license expression: %s' % (le.errors))
elif le.original_expression != le.normalized_expression:
- errors.append("license expression: '%s' normalizes to '%s'" % (value, le.normalized_expression))
+ warnings.append("license expression: '%s' normalizes to '%s'" % (value, le.normalized_expression))
# warn if value starts with a quote followed by whitespace
if re.match(r'^"[ \t]+', value):