diff options
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index e65a7220f5..f0c358ea32 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -398,9 +398,8 @@ python () { | |||
398 | dont_want_whitelist = (d.getVar('WHITELIST_%s' % dont_want_license, 1) or "").split() | 398 | dont_want_whitelist = (d.getVar('WHITELIST_%s' % dont_want_license, 1) or "").split() |
399 | if pn not in hosttools_whitelist and pn not in lgplv2_whitelist and pn not in dont_want_whitelist: | 399 | if pn not in hosttools_whitelist and pn not in lgplv2_whitelist and pn not in dont_want_whitelist: |
400 | 400 | ||
401 | import re | ||
402 | this_license = d.getVar('LICENSE', 1) | 401 | this_license = d.getVar('LICENSE', 1) |
403 | if this_license and re.search(dont_want_license, this_license): | 402 | if incompatible_license(d,dont_want_license): |
404 | bb.note("SKIPPING %s because it's %s" % (pn, this_license)) | 403 | bb.note("SKIPPING %s because it's %s" % (pn, this_license)) |
405 | raise bb.parse.SkipPackage("incompatible with license %s" % this_license) | 404 | raise bb.parse.SkipPackage("incompatible with license %s" % this_license) |
406 | 405 | ||