]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: allow plugins to set LICENSE and LIC_FILES_CHKSUM
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 21 Aug 2017 05:39:49 +0000 (17:39 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Aug 2017 07:30:32 +0000 (08:30 +0100)
commit1df60b09f7a60427795ec828c9c7180e4e52f98c
tree81390ea3859fbce03d7045961100a49b114663ea
parent3bb979c13463705c4db6c59034661c4cd8100756
recipetool: allow plugins to set LICENSE and LIC_FILES_CHKSUM

We were being a bit prescriptive in setting LICENSE and
LIC_FILES_CHKSUM. We can't always trust what's in the metadata
accompanying some source which plugins will almost always be pulling
from, however we do want to allow plugins to set the LICENSE and
LIC_FILES_CHKSUM values. Merge what we find in our license file scan
with what the plugin sends back.

Additionally, plugins can now add a "license" item to the handled list
in order to inhibit the normal LICENSE / LIC_FILES_CHKSUM handling if
they have already taken care of it completely.

Thanks to Mark Horn <mark.d.horn@intel.com> for prompting, testing and
fixing this patch.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py
scripts/lib/recipetool/create_npm.py