scanpypi: place a warning into *.mk file if licence id couldn't be detected

If a license file could be found, but license id couldn't be detected place
following warning into *.mk file:

FOO_LICENSE = FIXME: license id couldn't be detected

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yegor Yefremov 2018-08-31 17:07:46 +02:00 committed by Thomas Petazzoni
parent 1bcc6e8741
commit 0101ac62c8

View File

@ -444,6 +444,8 @@ class BuildrootPackage():
match = liclookup.match(lic_file.read())
if match is not None and match.confidence >= 90.0:
license_names.append(match.license.id)
else:
license_names.append("FIXME: license id couldn't be detected")
if len(license_names) > 0:
license_line = ('{name}_LICENSE ='