mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
recipetool: ignore empty license files
(From OE-Core rev: a00720344d1996db9e4afff1c974b3158fb8dae7) 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
d8655d3e15
commit
f0a43c39cb
|
@ -1126,9 +1126,10 @@ def guess_license(srctree, d):
|
|||
license = md5sums.get(md5value, None)
|
||||
if not license:
|
||||
license, crunched_md5, lictext = crunch_license(licfile)
|
||||
if not license:
|
||||
if lictext and not license:
|
||||
license = 'Unknown'
|
||||
licenses.append((license, os.path.relpath(licfile, srctree), md5value))
|
||||
if license:
|
||||
licenses.append((license, os.path.relpath(licfile, srctree), md5value))
|
||||
|
||||
# FIXME should we grab at least one source file with a license header and add that too?
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user