summaryrefslogtreecommitdiff
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
authorFlanagan, Elizabeth <elizabeth.flanagan@intel.com>2012-11-20 13:49:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-25 21:36:18 +0000
commitc5a171d5817233c0371e6f5b19f57f3c4b84f5ac (patch)
tree7367778fff654be9aae761aa4c1f88be222abbab /meta/classes/license.bbclass
parent95d6317aeaa835bcd0e904a18e6e0e825fdd0191 (diff)
downloadopenembedded-core-c5a171d5817233c0371e6f5b19f57f3c4b84f5ac.tar.gz
openembedded-core-c5a171d5817233c0371e6f5b19f57f3c4b84f5ac.tar.bz2
openembedded-core-c5a171d5817233c0371e6f5b19f57f3c4b84f5ac.zip
license.bbclass: Collect LICENSE level packages
Some bad logic in license.bbclass misses certain package level LICENSEs. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 7e1c23fffc..c7ca4a636e 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -97,9 +97,9 @@ python do_populate_lic() {
pn = d.getVar('PN', True)
for package in d.getVar('PACKAGES', True):
- if d.getVar('LICENSE_' + pn + '-' + package, True):
+ if d.getVar('LICENSE_' + package, True):
license_types = license_types + ' & ' + \
- d.getVar('LICENSE_' + pn + '-' + package, True)
+ d.getVar('LICENSE_' + package, True)
#If we get here with no license types, then that means we have a recipe
#level license. If so, we grab only those.