[oe-commits] Christopher Larson : insane.bbclass: quiet package errors not in *_QA

git at git.openembedded.org git at git.openembedded.org
Wed Jun 12 12:19:46 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 8f5675e6d3eb8473f367de72d2d3d8a702011a47
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8f5675e6d3eb8473f367de72d2d3d8a702011a47

Author: Christopher Larson <chris_larson at mentor.com>
Date:   Mon Jun 10 13:47:07 2013 -0700

insane.bbclass: quiet package errors not in *_QA

Currently, if a package QA type from package.bbclass is not listed in
ERROR_QA, it gets shown, regardless of whether it's in WARN_QA. This differs
from the behavior of the rest of the QA handling (which doesn't call
package_qa_handle_error at all if it's in neither _QA variable), and is
nonintuitive. Change this to use bb.note() if it's listed neither in ERROR_QA
nor WARN_QA, so it ends up in the task logs, but doesn't clutter up the user's
output.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/insane.bbclass |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c091005..2b30538 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -143,9 +143,11 @@ def package_qa_handle_error(error_class, error_msg, d):
         bb.error("QA Issue: %s" % error_msg)
         d.setVar("QA_SANE", False)
         return False
-    else:
+    elif error_class in (d.getVar("WARN_QA", True) or "").split():
         bb.warn("QA Issue: %s" % error_msg)
-        return True
+    else:
+        bb.note("QA Issue: %s" % error_msg)
+    return True
 
 QAPATHTEST[libexec] = "package_qa_check_libexec"
 def package_qa_check_libexec(path,name, d, elf, messages):



More information about the Openembedded-commits mailing list