From: Stefan Herbrechtsmeier Date: Fri, 8 Oct 2021 07:48:29 +0000 (+0200) Subject: recipetool: Add logger info for missing license entries X-Git-Tag: uninative-3.5~1286 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0548a5d8eeee682a6e250ddc1886279f52747db2;p=openembedded-core.git recipetool: Add logger info for missing license entries Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 87b25ebc7e..a8c4cdef4a 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -1128,6 +1128,9 @@ def guess_license(srctree, d): license, crunched_md5, lictext = crunch_license(licfile) if lictext and not license: 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: licenses.append((license, os.path.relpath(licfile, srctree), md5value))