insane.bbclass: fix error/warning status being inverted

Fix package_qa_handle_error so that it returns the correct values in order
to determine error/warning status.

(From OE-Core rev: a66ed717f5f5991ee4072df67428564677e7d220)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2011-07-07 18:32:47 +01:00 committed by Richard Purdie
parent 34ea005d6a
commit 18ce7e2ef3
1 changed files with 2 additions and 2 deletions

View 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):