diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index d2d5da04cf..dd346ee8f3 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -438,6 +438,10 @@ python () { | |||
438 | import exceptions | 438 | import exceptions |
439 | 439 | ||
440 | pn = bb.data.getVar('PN', d, 1) | 440 | pn = bb.data.getVar('PN', d, 1) |
441 | license = bb.data.getVar('LICENSE', d, True) | ||
442 | if license == "INVALID": | ||
443 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) | ||
444 | |||
441 | # If we're building a target package we need to use fakeroot (pseudo) | 445 | # If we're building a target package we need to use fakeroot (pseudo) |
442 | # in order to capture permissions, owners, groups and special files | 446 | # in order to capture permissions, owners, groups and special files |
443 | if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): | 447 | if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): |