summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e0d6ff6701..ef3de35961 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1263,8 +1263,9 @@ python populate_packages () {
1263 # Handle LICENSE_EXCLUSION 1263 # Handle LICENSE_EXCLUSION
1264 package_list = [] 1264 package_list = []
1265 for pkg in packages: 1265 for pkg in packages:
1266 if d.getVar('LICENSE_EXCLUSION-' + pkg): 1266 licenses = d.getVar('LICENSE_EXCLUSION-' + pkg)
1267 msg = "%s has an incompatible license. Excluding from packaging." % pkg 1267 if licenses:
1268 msg = "Excluding %s from packaging as it has incompatible license(s): %s" % (pkg, licenses)
1268 package_qa_handle_error("incompatible-license", msg, d) 1269 package_qa_handle_error("incompatible-license", msg, d)
1269 else: 1270 else:
1270 package_list.append(pkg) 1271 package_list.append(pkg)