summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-02 18:18:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-04 11:35:42 +0000
commit1a992fd41861a30f1359169a83c16e99611a3e50 (patch)
treeb455edecf8f6583d4d13cf96e6e34f71061bc3b3 /meta/classes/base.bbclass
parent2bce61ee412138e1a343cbdd7e766dc2745cecaa (diff)
downloadpoky-1a992fd41861a30f1359169a83c16e99611a3e50.tar.gz
base: Don't print LICENSE warning for non-recipe context
Now bitbake is executing anonymous python fragments in bitbake -e, ensure we don't show the error in that context (where PN would be unchanged from default). (From OE-Core rev: 79240b3af32c7fa44751752e9e8f2ff832439643) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 21cacfb9a5..b0a72c7a90 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -456,7 +456,7 @@ python () {
456 456
457 pn = d.getVar('PN') 457 pn = d.getVar('PN')
458 license = d.getVar('LICENSE') 458 license = d.getVar('LICENSE')
459 if license == "INVALID": 459 if license == "INVALID" and pn != "defaultpkgname":
460 bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) 460 bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn)
461 461
462 if bb.data.inherits_class('license', d): 462 if bb.data.inherits_class('license', d):