aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bblayers/layerindex.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-03-20 17:07:04 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-21 21:01:56 +0000
commit7e6a3cd1472e1a1c8304b46611e1676914a68b59 (patch)
treec8630173134a20bb5936fd032fbfc417f394325f /lib/bblayers/layerindex.py
parent282dc0719d22a39df746eea762ebe05c66aa8f8a (diff)
downloadbitbake-7e6a3cd1472e1a1c8304b46611e1676914a68b59.tar.gz
bitbake-layers: fix layerindex-fetch for Python 3
The data we read from an HTTPConnection comes in the form of bytes, but we need it as a string, so in Python 3 we need to decode it (missed in the Python 3 migration). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bblayers/layerindex.py')
-rw-r--r--lib/bblayers/layerindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 013e952f3..506c1109d 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -56,7 +56,7 @@ class LayerIndexPlugin(ActionPlugin):
r = conn.getresponse()
if r.status != 200:
raise Exception("Failed to read " + path + ": %d %s" % (r.status, r.reason))
- return json.loads(r.read())
+ return json.loads(r.read().decode())
def get_layer_deps(self, layername, layeritems, layerbranches, layerdependencies, branchnum, selfname=False):
def layeritems_info_id(items_name, layeritems):