diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-12-15 17:08:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-20 15:29:01 +0000 |
commit | 32f56de27851714082bcef2de9e783140e282cb0 (patch) | |
tree | 1f24a59db6f33fa6b23a71b42051c00f8614bf6e /meta/lib/oeqa/selftest/cases/recipetool.py | |
parent | 2be34ea6edde2d8a7ca035089b2a52dff76b5652 (diff) | |
download | poky-32f56de27851714082bcef2de9e783140e282cb0.tar.gz |
recipetool: Separate licenses with & operator
Separate licenses with & operator since it should be satisfied most use
cases and it is a reasonable assumption that all the licenses apply.
Furthermore flat, split and sort the licenses to minimize license string
changes.
Separate package licenses with & operator:
-LICENSE:${PN} = "MIT ISC"
+LICENSE:${PN} = "ISC & MIT"
Respect | and brackets in LICENSE:
-LICENSE = "BSD-3-Clause & (ISC & | & MIT)"
+LICENSE = "BSD-3-Clause & (ISC | MIT)"
Sort licenses:
-LICENSE = "MIT & BSD-3-Clause & ISC"
+LICENSE = "BSD-3-Clause & ISC & MIT"
Remove duplicates:
-LICENSE = "MIT & ISC & MIT"
+LICENSE = "ISC & MIT"
(From OE-Core rev: 60a84ecc53d20118c5e7f86dd3e3cafbfed1cf0a)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/recipetool.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index 439e41597c..95e4753976 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
@@ -426,7 +426,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
426 | checkvars = {} | 426 | checkvars = {} |
427 | checkvars['SUMMARY'] = 'Node Server Example' | 427 | checkvars['SUMMARY'] = 'Node Server Example' |
428 | checkvars['HOMEPAGE'] = 'https://github.com/savoirfairelinux/node-server-example#readme' | 428 | checkvars['HOMEPAGE'] = 'https://github.com/savoirfairelinux/node-server-example#readme' |
429 | checkvars['LICENSE'] = set(['MIT', 'ISC', 'Unknown']) | 429 | checkvars['LICENSE'] = 'BSD-3-Clause & ISC & MIT & Unknown' |
430 | urls = [] | 430 | urls = [] |
431 | urls.append('npm://registry.npmjs.org/;package=@savoirfairelinux/node-server-example;version=${PV}') | 431 | urls.append('npm://registry.npmjs.org/;package=@savoirfairelinux/node-server-example;version=${PV}') |
432 | urls.append('npmsw://${THISDIR}/${BPN}/npm-shrinkwrap.json') | 432 | urls.append('npmsw://${THISDIR}/${BPN}/npm-shrinkwrap.json') |
@@ -483,7 +483,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
483 | result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri)) | 483 | result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri)) |
484 | self.assertTrue(os.path.isfile(recipefile)) | 484 | self.assertTrue(os.path.isfile(recipefile)) |
485 | checkvars = {} | 485 | checkvars = {} |
486 | checkvars['LICENSE'] = set(['PSF', '&', 'BSD-3-Clause', 'GPL']) | 486 | checkvars['LICENSE'] = 'BSD-3-Clause & GPL & PSF' |
487 | checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING.txt;md5=35a23d42b615470583563132872c97d6' | 487 | checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING.txt;md5=35a23d42b615470583563132872c97d6' |
488 | checkvars['SRC_URI'] = 'https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-${PV}.tar.gz' | 488 | checkvars['SRC_URI'] = 'https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-${PV}.tar.gz' |
489 | checkvars['SRC_URI[md5sum]'] = 'c53768d63db3873b7d452833553469de' | 489 | checkvars['SRC_URI[md5sum]'] = 'c53768d63db3873b7d452833553469de' |