summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-12-01 11:13:09 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-07 10:42:22 +0000
commit1b4fa3f095825d09bf7002d13f59472cae9fa263 (patch)
treeb086df46f395c24329c1fb72290f7953bde3cff1 /bitbake/lib
parentda22be9904da257a168d72c2b00a6b839b0ed434 (diff)
downloadpoky-1b4fa3f095825d09bf7002d13f59472cae9fa263.tar.gz
bitbake: 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] (Bitbake rev: efb0e47479b3526bc047112f7200087c5844bba4) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 1b820d8836..29f7156341 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1488,7 +1488,7 @@ class BBCooker:
1488 v = self.data.getVar(k, expand) 1488 v = self.data.getVar(k, expand)
1489 if not k.startswith("__") and not isinstance(v, bb.data_smart.DataSmart): 1489 if not k.startswith("__") and not isinstance(v, bb.data_smart.DataSmart):
1490 dump[k] = { 1490 dump[k] = {
1491 'v' : v , 1491 'v' : str(v) ,
1492 'history' : self.data.varhistory.variable(k), 1492 'history' : self.data.varhistory.variable(k),
1493 } 1493 }
1494 for d in flaglist: 1494 for d in flaglist: