From feca9f7849422c9b0f529018a48148178e2673c9 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 15 Jan 2013 13:22:46 -0700 Subject: license.bbclass: check LICENSE_pkg, not LICENSE_pn-pkg Recipes define the latter, as that's what goes into the binary packages, not the former. (From OE-Core rev: 6a59b294b99b05e8973b5f2d60678988e90e2de3) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- meta/classes/license.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'meta/classes') diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 68f45f52f0..c8a8c639fa 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -215,8 +215,7 @@ def incompatible_license(d, dont_want_licenses, package=None): import re import oe.license from fnmatch import fnmatchcase as fnmatch - pn = d.getVar('PN', True) - license = d.getVar("LICENSE_%s-%s" % (pn, package), True) if package else None + license = d.getVar("LICENSE_%s" % package, True) if package else None if not license: license = d.getVar('LICENSE', True) -- cgit v1.2.3-54-g00ecf