trivial: check-license: rename license variable to lic

license is a built-in.
caught by codacity.
This commit is contained in:
Mario Limonciello 2021-08-08 15:04:43 -05:00
parent 915916e22a
commit 28a04c7c78

View File

@ -24,13 +24,13 @@ def test_files() -> int:
for fn in glob.glob("**/*.[c|h|py|sh]", recursive=True): for fn in glob.glob("**/*.[c|h|py|sh]", recursive=True):
if "meson-private" in fn: if "meson-private" in fn:
continue continue
license = __get_license(fn) lic = __get_license(fn)
if not license: if not lic:
print("{} does not specify a license".format(fn)) print("{} does not specify a license".format(fn))
rc = 1 rc = 1
continue continue
if not "GPL" in license: if not "GPL" in lic:
print("{} does not contain LGPL or GPL ({})".format(fn, license)) print("{} does not contain LGPL or GPL ({})".format(fn, lic))
rc = 1 rc = 1
continue continue
return rc return rc