mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
recipetool: Add logger info for missing license entries
(From OE-Core rev: 0548a5d8eeee682a6e250ddc1886279f52747db2) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f0a43c39cb
commit
bb54949b17
|
@ -1128,6 +1128,9 @@ def guess_license(srctree, d):
|
||||||
license, crunched_md5, lictext = crunch_license(licfile)
|
license, crunched_md5, lictext = crunch_license(licfile)
|
||||||
if lictext and not license:
|
if lictext and not license:
|
||||||
license = 'Unknown'
|
license = 'Unknown'
|
||||||
|
logger.info("Please add the following line for '%s' to a 'lib/recipetool/licenses.csv' " \
|
||||||
|
"and replace `Unknown` with the license:\n" \
|
||||||
|
"%s,Unknown" % (os.path.relpath(licfile, srctree), md5value))
|
||||||
if license:
|
if license:
|
||||||
licenses.append((license, os.path.relpath(licfile, srctree), md5value))
|
licenses.append((license, os.path.relpath(licfile, srctree), md5value))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user