]> code.ossystems Code Review - openembedded-core.git/commitdiff
license.bbclass: Collect LICENSE level packages
authorFlanagan, Elizabeth <elizabeth.flanagan@intel.com>
Tue, 20 Nov 2012 21:49:56 +0000 (13:49 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 25 Nov 2012 21:36:18 +0000 (21:36 +0000)
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>
meta/classes/license.bbclass

index 7e1c23fffcec6973b566bd42849ea5711b616a63..c7ca4a636eb014ef36837b9ab6eceb06293865bb 100644 (file)
@@ -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.