diff options
Diffstat (limited to 'meta/classes/base.bbclass')
| -rw-r--r-- | meta/classes/base.bbclass | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 45f9435fd8..7aa2e144eb 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -584,19 +584,6 @@ python () { | |||
| 584 | bb.debug(1, "Skipping recipe %s because of incompatible license(s): %s" % (pn, ' '.join(incompatible_lic))) | 584 | bb.debug(1, "Skipping recipe %s because of incompatible license(s): %s" % (pn, ' '.join(incompatible_lic))) |
| 585 | raise bb.parse.SkipRecipe("it has incompatible license(s): %s" % ' '.join(incompatible_lic)) | 585 | raise bb.parse.SkipRecipe("it has incompatible license(s): %s" % ' '.join(incompatible_lic)) |
| 586 | 586 | ||
| 587 | # Try to verify per-package (LICENSE_<pkg>) values. LICENSE should be a | ||
| 588 | # superset of all per-package licenses. We do not do advanced (pattern) | ||
| 589 | # matching of license expressions - just check that all license strings | ||
| 590 | # in LICENSE_<pkg> are found in LICENSE. | ||
| 591 | license_set = oe.license.list_licenses(license) | ||
| 592 | for pkg in d.getVar('PACKAGES').split(): | ||
| 593 | pkg_license = d.getVar('LICENSE_' + pkg) | ||
| 594 | if pkg_license: | ||
| 595 | unlisted = oe.license.list_licenses(pkg_license) - license_set | ||
| 596 | if unlisted: | ||
| 597 | bb.warn("LICENSE_%s includes licenses (%s) that are not " | ||
| 598 | "listed in LICENSE" % (pkg, ' '.join(unlisted))) | ||
| 599 | |||
| 600 | needsrcrev = False | 587 | needsrcrev = False |
| 601 | srcuri = d.getVar('SRC_URI') | 588 | srcuri = d.getVar('SRC_URI') |
| 602 | for uri in srcuri.split(): | 589 | for uri in srcuri.split(): |
