diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-10-08 09:48:29 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:48:45 +0100 |
commit | bb54949b1724988b7956bc542f347f342103fd69 (patch) | |
tree | 2f182d7832124e3aa13a98586db8a4e461fcce0a /scripts/lib/recipetool/create.py | |
parent | f0a43c39cb6eb436fe49c2b6143ddf97a6a4f5e6 (diff) | |
download | poky-bb54949b1724988b7956bc542f347f342103fd69.tar.gz |
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>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): | |||
1128 | license, crunched_md5, lictext = crunch_license(licfile) | 1128 | license, crunched_md5, lictext = crunch_license(licfile) |
1129 | if lictext and not license: | 1129 | if lictext and not license: |
1130 | license = 'Unknown' | 1130 | license = 'Unknown' |
1131 | logger.info("Please add the following line for '%s' to a 'lib/recipetool/licenses.csv' " \ | ||
1132 | "and replace `Unknown` with the license:\n" \ | ||
1133 | "%s,Unknown" % (os.path.relpath(licfile, srctree), md5value)) | ||
1131 | if license: | 1134 | if license: |
1132 | licenses.append((license, os.path.relpath(licfile, srctree), md5value)) | 1135 | licenses.append((license, os.path.relpath(licfile, srctree), md5value)) |
1133 | 1136 | ||