1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

Make invalid LICENSE fields fatal

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-09-30 20:15:40 +01:00
parent c0281fa49b
commit e3d7890cac
2 changed files with 5 additions and 1 deletions
+4
View 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):