mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-29 20:32:50 +00:00
trivial: check-license: rename license variable to lic
license is a built-in. caught by codacity.
This commit is contained in:
parent
915916e22a
commit
28a04c7c78
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user