diff options
| -rw-r--r-- | meta/classes/base.bbclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 0ee9d2e710..ac97a35c4c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -486,12 +486,13 @@ python () { | |||
| 486 | if license == "INVALID": | 486 | if license == "INVALID": |
| 487 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) | 487 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) |
| 488 | 488 | ||
| 489 | unmatched_license_flag = check_license_flags(d) | 489 | if bb.data.inherits_class('license', d): |
| 490 | if unmatched_license_flag: | 490 | unmatched_license_flag = check_license_flags(d) |
| 491 | bb.debug(1, "Skipping %s because it has a restricted license not" | 491 | if unmatched_license_flag: |
| 492 | " whitelisted in LICENSE_FLAGS_WHITELIST" % pn) | 492 | bb.debug(1, "Skipping %s because it has a restricted license not" |
| 493 | raise bb.parse.SkipPackage("because it has a restricted license not" | 493 | " whitelisted in LICENSE_FLAGS_WHITELIST" % pn) |
| 494 | " whitelisted in LICENSE_FLAGS_WHITELIST") | 494 | raise bb.parse.SkipPackage("because it has a restricted license not" |
| 495 | " whitelisted in LICENSE_FLAGS_WHITELIST") | ||
| 495 | 496 | ||
| 496 | # If we're building a target package we need to use fakeroot (pseudo) | 497 | # If we're building a target package we need to use fakeroot (pseudo) |
| 497 | # in order to capture permissions, owners, groups and special files | 498 | # in order to capture permissions, owners, groups and special files |
