[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20220704-25-g175aeb6
Jon TURNEY via Cygwin-apps-cvs <[email protected]> Tue, 18 Oct 2022 18:56:22 +0000 (GMT)
| Newsgroups | gmane.os.cygwin.cvs.apps |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=175aeb644de5e9271394d56176ba2de8cec2f082 commit 175aeb644de5e9271394d56176ba2de8cec2f082 Author: Jon Turney <[email protected]> Date: Tue Oct 18 19:54:39 2022 +0100 Turn license expression not normalized error into a warning Diff: --- calm/hint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):