From patchwork Tue Nov 20 21:49:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] license.bbclass: Collect LICENSE level packages Date: Tue, 20 Nov 2012 21:49:56 -0000 From: Elizabeth Flanagan X-Patchwork-Id: 39373 Message-Id: To: Patches and discussions about the oe-core layer Some bad logic in license.bbclass misses certain package level LICENSEs. Signed-off-by: Elizabeth Flanagan --- meta/classes/license.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 7e1c23f..c7ca4a6 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.