aboutsummaryrefslogtreecommitdiff
path: root/utils/scanpypi
diff options
context:
space:
mode:
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2018-08-31 17:07:46 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-08-31 23:12:57 +0200
commit0101ac62c81e468ba7fd47b991972a722cf1b43c (patch)
treec439c3e29f373879f63c6bdce9c35704d1524fa1 /utils/scanpypi
parent1bcc6e87410c76efb2f4bdd9714916acef84b7d0 (diff)
downloadbuildroot-0101ac62c81e468ba7fd47b991972a722cf1b43c.tar.gz
buildroot-0101ac62c81e468ba7fd47b991972a722cf1b43c.tar.bz2
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>
Diffstat (limited to 'utils/scanpypi')
-rwxr-xr-xutils/scanpypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/scanpypi b/utils/scanpypi
index 12c96b842e..31e242e3db 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -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 ='