From 8825d4d455412bbed6f58e81b81d14a5399840b4 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Wed, 12 May 2010 10:54:05 -0700 Subject: 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 --- meta/classes/insane.bbclass | 6 ++++-- 1 file 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) -- cgit v1.2.3-54-g00ecf