]> code.ossystems Code Review - openembedded-core.git/commitdiff
Make invalid LICENSE fields fatal
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 30 Sep 2010 19:15:40 +0000 (20:15 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 30 Sep 2010 19:46:23 +0000 (20:46 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/base.bbclass
meta/conf/bitbake.conf

index d2d5da04cfb987e6f04801c5f75d413871a814ae..dd346ee8f32051f886c6fa3324e97cc54032187d 100644 (file)
@@ -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):
index c2a211967881b49d425156409a446af2c8c6a42d..33a6fad30f787fb59c0e54022af4433ec55bb03e 100644 (file)
@@ -170,7 +170,7 @@ DESCRIPTION_${PN} ?= "${SUMMARY_${PN}}"
 DESCRIPTION_${PN}-dbg ?= "${SUMMARY_${PN}-dbg}"
 DESCRIPTION_${PN}-dev ?= "${SUMMARY_${PN}-dev}"
 DESCRIPTION_${PN}-doc ?= "${SUMMARY_${PN}-doc}"
-LICENSE = "unknown"
+LICENSE = "INVALID"
 MAINTAINER = "Poky Team <poky@openedhand.com>"
 HOMEPAGE = "unknown"