[oe-commits] [openembedded-core] 03/15: sanity.bbclass: Use pythonexception to raise real exceptions without backtraces

git at git.openembedded.org git at git.openembedded.org
Wed Mar 30 20:24:46 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a0860e308645f17dbf4b9005b2fc0e9869d730bf
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Mar 30 20:55:42 2016 +0100

    sanity.bbclass: Use pythonexception to raise real exceptions without backtraces
    
    If the sanity code encounters a version change is doesn't understand, the current
    output is unreadable and confusing for the user, particularly due to the presence
    of the backtrace.
    
    Use improved functionality in bitbake to improve this and correctly pass python
    exceptions around.
    
    [YOCTO #9291]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/sanity.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index a400bca..662f764 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -563,10 +563,10 @@ def sanity_check_conffiles(status, d):
                 d.getVar(current_version, True) != d.getVar(required_version, True):
             success = True
             try:
-                bb.build.exec_func(func, d)
+                bb.build.exec_func(func, d, pythonexception=True)
             except NotImplementedError as e:
                 success = False
-                status.addresult(e.msg)
+                status.addresult(str(e))
             if success:
                 status.reparse = True
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list