diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-10-08 09:48:31 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:48:35 +0100 |
commit | 194df9c240378b6befeb10183889093ec7bb4d5f (patch) | |
tree | 49ade401f4059451b34ad68ed1550149a245e63a /scripts | |
parent | d5c4979669f125e73c24dcc73fa3c4f3787bbb62 (diff) | |
download | openembedded-core-contrib-194df9c240378b6befeb10183889093ec7bb4d5f.tar.gz |
recipetool: npm: Do not add package.json files to LIC_FILES_CHKSUM
The package.json files doesn't contain any licenses. The name of the
license doesn't comply the license requirements of most liceneses.
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')
-rw-r--r-- | scripts/lib/recipetool/create_npm.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py index 2bcae91dfa..c939780931 100644 --- a/scripts/lib/recipetool/create_npm.py +++ b/scripts/lib/recipetool/create_npm.py @@ -115,17 +115,9 @@ class NpmRecipeHandler(RecipeHandler): def _handle_licenses(self, srctree, shrinkwrap_file, dev): """Return the extra license files and the list of packages""" - licfiles = [] packages = {} - def _licfiles_append(licfile): - """Append 'licfile' to the license files list""" - licfilepath = os.path.join(srctree, licfile) - licmd5 = bb.utils.md5_file(licfilepath) - licfiles.append("file://%s;md5=%s" % (licfile, licmd5)) - # Handle the parent package - _licfiles_append("package.json") packages["${PN}"] = "" # Handle the dependencies @@ -133,7 +125,6 @@ class NpmRecipeHandler(RecipeHandler): suffix = "-".join([self._npm_name(dep) for dep in deptree]) destdirs = [os.path.join("node_modules", dep) for dep in deptree] destdir = os.path.join(*destdirs) - _licfiles_append(os.path.join(destdir, "package.json")) packages["${PN}-" + suffix] = destdir with open(shrinkwrap_file, "r") as f: @@ -246,7 +237,6 @@ class NpmRecipeHandler(RecipeHandler): bb.note("Handling licences ...") (licfiles, packages) = self._handle_licenses(srctree, shrinkwrap_file, dev) - extravalues["LIC_FILES_CHKSUM"] = licfiles split_pkg_licenses(guess_license(srctree, d), packages, lines_after, []) classes.append("npm") |