]> code.ossystems Code Review - openembedded-core.git/commitdiff
License Checking: convert an error into warning
authorNitin A Kamble <nitin.a.kamble@intel.com>
Wed, 12 May 2010 17:54:05 +0000 (10:54 -0700)
committerNitin A Kamble <nitin.a.kamble@intel.com>
Wed, 12 May 2010 17:54:05 +0000 (10:54 -0700)
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>
meta/classes/insane.bbclass

index 88e77a75ee805be88380ba61c85df12c7901d02e..0c9bde349cbedefed65f229d5c3bbf2c564ab3e7 100644 (file)
@@ -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)