Patchwork [2/3] insane.bbclass: fix error/warning status being inverted

login
register
mail settings
Submitter Paul Eggleton
Date July 7, 2011, 5:32 p.m.
Message ID <2a4386a98ed2f0fa7346bf9eaf1ba8f2b370f424.1310059749.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/7169/
State Accepted
Headers show

Comments

Paul Eggleton - July 7, 2011, 5:32 p.m.
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>
---
 meta/classes/insane.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 1cf7014..1567f36 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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):