]> 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>
Thu, 14 Feb 2013 15:17:16 +0000 (15:17 +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 a66933f733db706add8eacf7b30db14106ff7c8d..ec9aa8f4ef61762f42c3daf2eaecc36c2d679720 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.