summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-30 20:15:40 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-30 20:46:23 +0100
commite3d7890cace71b0a57d2530bf615a58dcb46d96f (patch)
treea7fd52a7c88a8919a72579cd05e86d5079a39567 /meta/classes
parentc0281fa49b734c49f8c5b5f0d33f7b611bbc282f (diff)
downloadopenembedded-core-e3d7890cace71b0a57d2530bf615a58dcb46d96f.tar.gz
openembedded-core-e3d7890cace71b0a57d2530bf615a58dcb46d96f.tar.bz2
openembedded-core-e3d7890cace71b0a57d2530bf615a58dcb46d96f.tar.xz
openembedded-core-e3d7890cace71b0a57d2530bf615a58dcb46d96f.zip
Make invalid LICENSE fields fatal
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d2d5da04c..dd346ee8f 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -438,6 +438,10 @@ python () {
import exceptions
pn = bb.data.getVar('PN', d, 1)
+ license = bb.data.getVar('LICENSE', d, True)
+ if license == "INVALID":
+ bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn)
+
# If we're building a target package we need to use fakeroot (pseudo)
# in order to capture permissions, owners, groups and special files
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):