summaryrefslogtreecommitdiff
path: root/meta/classes/copyleft_compliance.bbclass
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-04-02 22:37:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-04 16:53:29 +0100
commit20996da46aff03e61de50444ab3a0ab46c057dfd (patch)
tree5e316a9acd827aef689e06b7ce6dde6a340033d6 /meta/classes/copyleft_compliance.bbclass
parent987d06447d2eacf2e01f08e29469c00fbb0ef1db (diff)
downloadopenembedded-core-20996da46aff03e61de50444ab3a0ab46c057dfd.tar.gz
openembedded-core-20996da46aff03e61de50444ab3a0ab46c057dfd.tar.bz2
openembedded-core-20996da46aff03e61de50444ab3a0ab46c057dfd.zip
copyleft_compliance: also print the reason for including a package
Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'meta/classes/copyleft_compliance.bbclass')
-rw-r--r--meta/classes/copyleft_compliance.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index 4082e7e15d..3ca7337b55 100644
--- a/meta/classes/copyleft_compliance.bbclass
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -47,14 +47,14 @@ def copyleft_should_include(d):
exclude = oe.data.typed_value('COPYLEFT_LICENSE_EXCLUDE', d)
try:
- is_included, excluded = oe.license.is_included(d.getVar('LICENSE', True), include, exclude)
+ is_included, reason = oe.license.is_included(d.getVar('LICENSE', True), include, exclude)
except oe.license.LicenseError as exc:
bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
else:
if is_included:
- return True, None
+ return True, 'recipe has included licenses: %s' % ', '.join(reason)
else:
- return False, 'recipe has excluded licenses: %s' % ', '.join(excluded)
+ return False, 'recipe has excluded licenses: %s' % ', '.join(reason)
python do_prepare_copyleft_sources () {
"""Populate a tree of the recipe sources and emit patch series files"""
@@ -67,7 +67,7 @@ python do_prepare_copyleft_sources () {
bb.debug(1, 'copyleft: %s is excluded: %s' % (p, reason))
return
else:
- bb.debug(1, 'copyleft: %s is included' % p)
+ bb.debug(1, 'copyleft: %s is included: %s' % (p, reason))
sources_dir = d.getVar('COPYLEFT_SOURCES_DIR', True)
src_uri = d.getVar('SRC_URI', True).split()