From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id CF6053858D3C; Tue, 18 Oct 2022 18:56:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF6053858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666119382; bh=52lRJPs71C5K1Q8HOoV8drJXkTWyP5nBOiB/+h0MmUQ=; h=To:Subject:Date:From:From; b=cbB7vK2XLi1Y5+0aZ1bOwfQjO4S6AmId93EDE3Ly/CHCmL/1QM2tHX7NhsdehHajs rcxYqbcDrknO1VtP0CU4DGyFRZTZniJgUn9MDI7m7iUwT9EZsic2W2AdIkISjqhynt Yo8p3j6gsgv2pMAj3IfmtdBUXx8micQC+I4wAMMI= To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20220704-25-g175aeb6 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 077992f51cd105612f72fd2eabc156a7733af055 X-Git-Newrev: 175aeb644de5e9271394d56176ba2de8cec2f082 Message-Id: <20221018185622.CF6053858D3C@sourceware.org> Date: Tue, 18 Oct 2022 18:56:22 +0000 (GMT) From: Jon TURNEY List-Id: https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=175aeb644de5e9271394d56176ba2de8cec2f082 commit 175aeb644de5e9271394d56176ba2de8cec2f082 Author: Jon Turney 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):