[oe-commits] [bitbake] 07/08: cooker: convert type which needs to be marshalled

git at git.openembedded.org git at git.openembedded.org
Wed Dec 7 10:44:25 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit efb0e47479b3526bc047112f7200087c5844bba4
Author: Sujith H <sujith.h at gmail.com>
AuthorDate: Thu Dec 1 11:13:09 2016 +0530

    cooker: convert type which needs to be marshalled
    
    We assume that the value taken by variable v can be string,
    integer or any type which can be marshalled by xmlrpc. This
    change would help us to convert the non marshallable types
    to string. So that we don't get exception from xmlrpc.
    
    [YOCTO #10740]
    
    Signed-off-by: Sujith H <sujith.h at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cooker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 1b820d8..29f7156 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1488,7 +1488,7 @@ class BBCooker:
                 v = self.data.getVar(k, expand)
                 if not k.startswith("__") and not isinstance(v, bb.data_smart.DataSmart):
                     dump[k] = {
-    'v' : v ,
+    'v' : str(v) ,
     'history' : self.data.varhistory.variable(k),
                     }
                     for d in flaglist:

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


More information about the Openembedded-commits mailing list