summaryrefslogtreecommitdiff
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-05-12 10:54:05 -0700
committerNitin A Kamble <nitin.a.kamble@intel.com>2010-05-12 10:54:05 -0700
commit8825d4d455412bbed6f58e81b81d14a5399840b4 (patch)
treec4b74a257ee630be2e9ee826250dc6ef8a6ac0ec /meta/classes/insane.bbclass
parent2ca1f78a9578d9c2095be548aeda523b61ee840c (diff)
downloadopenembedded-core-8825d4d455412bbed6f58e81b81d14a5399840b4.tar.gz
openembedded-core-8825d4d455412bbed6f58e81b81d14a5399840b4.tar.bz2
openembedded-core-8825d4d455412bbed6f58e81b81d14a5399840b4.zip
License Checking: convert an error into warning
If license file md5 information (LIC_FILES_CHKSUMS variable) is missing in the recipe then just throw a warning instead of the build failure. Once enough recipes' LIC_FILES_CHKSUMS are filled then this warning will be reverted back to the the fetal error. If LIC_FILES_CHKSUMS field is present but invalid then the it still causes a fetal build error. Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 88e77a75ee..0c9bde349c 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -276,8 +276,10 @@ def package_qa_check_license(workdir, d):
lic_files = bb.data.getVar('LIC_FILES_CHKSUM', d, True)
if not lic_files:
- bb.error(" Recipe (.bb) file does not have license file information (LIC_FILES_CHKSUM)")
- return False
+ # just throw a warning now. Once licensing data in entered for enough of the recipes,
+ # this will be converted into error and False will be returned.
+ bb.warn(" Recipe (.bb) file does not have license file information (LIC_FILES_CHKSUM)")
+ return True
srcdir = bb.data.getVar('S', d, True)