From 28a04c7c78b7f3bd69c455aeae1ab434a77985cc Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Sun, 8 Aug 2021 15:04:43 -0500 Subject: [PATCH] trivial: check-license: rename license variable to lic license is a built-in. caught by codacity. --- contrib/ci/check-license.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/ci/check-license.py b/contrib/ci/check-license.py index f891b7c9f..e2f6d7b50 100755 --- a/contrib/ci/check-license.py +++ b/contrib/ci/check-license.py @@ -24,13 +24,13 @@ def test_files() -> int: for fn in glob.glob("**/*.[c|h|py|sh]", recursive=True): if "meson-private" in fn: continue - license = __get_license(fn) - if not license: + lic = __get_license(fn) + if not lic: print("{} does not specify a license".format(fn)) rc = 1 continue - if not "GPL" in license: - print("{} does not contain LGPL or GPL ({})".format(fn, license)) + if not "GPL" in lic: + print("{} does not contain LGPL or GPL ({})".format(fn, lic)) rc = 1 continue return rc