* [Buildroot] [PATCH] scanpypi: place a warning into *.mk file if licence id couldn't be detected
@ 2018-08-31 15:07 yegorslists at googlemail.com
2018-08-31 21:13 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: yegorslists at googlemail.com @ 2018-08-31 15:07 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
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>
---
utils/scanpypi | 2 ++
1 file changed, 2 insertions(+)
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 ='
--
2.17.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] scanpypi: place a warning into *.mk file if licence id couldn't be detected
2018-08-31 15:07 [Buildroot] [PATCH] scanpypi: place a warning into *.mk file if licence id couldn't be detected yegorslists at googlemail.com
@ 2018-08-31 21:13 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-08-31 21:13 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 31 Aug 2018 17:07:46 +0200, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> 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>
> ---
> utils/scanpypi | 2 ++
> 1 file changed, 2 insertions(+)
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-31 21:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31 15:07 [Buildroot] [PATCH] scanpypi: place a warning into *.mk file if licence id couldn't be detected yegorslists at googlemail.com
2018-08-31 21:13 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.