Skip to contentSkip to conversation

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

PATCH New yegorslists at googlemail.com 2 participants 2 messages Aug 31, 2018

lore
Share & tools
lore
#0 lore raw

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

From: Yegor Yefremov <[email protected]>

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

---
 utils/scanpypi | 2 ++
 1 file changed, 2 insertions(+)
utils/scanpypi +2 -0
index 12c96b842e..31e242e3db 100755
@@ -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 ='
Signature · 1 line
2.17.0
#1 lore raw

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

Hello,

Quoted 11 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

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

---
 utils/scanpypi | 2 ++
 1 file changed, 2 insertions(+)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com