summaryrefslogtreecommitdiffstats
path: root/meta/classes
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
parent2ca1f78a9578d9c2095be548aeda523b61ee840c (diff)
downloadpoky-8825d4d455412bbed6f58e81b81d14a5399840b4.tar.gz
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')
-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):
276 lic_files = bb.data.getVar('LIC_FILES_CHKSUM', d, True) 276 lic_files = bb.data.getVar('LIC_FILES_CHKSUM', d, True)
277 277
278 if not lic_files: 278 if not lic_files:
279 bb.error(" Recipe (.bb) file does not have license file information (LIC_FILES_CHKSUM)") 279 # just throw a warning now. Once licensing data in entered for enough of the recipes,
280 return False 280 # this will be converted into error and False will be returned.
281 bb.warn(" Recipe (.bb) file does not have license file information (LIC_FILES_CHKSUM)")
282 return True
281 283
282 srcdir = bb.data.getVar('S', d, True) 284 srcdir = bb.data.getVar('S', d, True)
283 285