]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: fix error/warning status being inverted
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 7 Jul 2011 17:32:47 +0000 (18:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jul 2011 16:33:44 +0000 (17:33 +0100)
Fix package_qa_handle_error so that it returns the correct values in order
to determine error/warning status.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 1cf7014bc810aba5ab07377cdeeb960a83a12181..1567f36227c5bf70cfd11616148e482872a60ae6 100644 (file)
@@ -112,10 +112,10 @@ def package_qa_handle_error(error_class, error_msg, d):
     package_qa_write_error(error_msg, d)
     if error_class in (d.getVar("ERROR_QA", True) or "").split():
         bb.error("QA Issue: %s" % error_msg)
-        return True
+        return False
     else:
         bb.warn("QA Issue: %s" % error_msg)
-        return False
+        return True
 
 QAPATHTEST[rpaths] = "package_qa_check_rpath"
 def package_qa_check_rpath(file,name, d, elf, messages):