diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-11-29 14:34:56 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-18 15:09:19 +0000 |
commit | 84fd0eb005d8130106496d9e1c360cb0d8625f12 (patch) | |
tree | f2dd0b49e173ddcc4f906802184556b1c73b2702 /bitbake/lib/bblayers | |
parent | e6626951501cdf8c5516ad42fd585894f19c2327 (diff) | |
download | poky-84fd0eb005d8130106496d9e1c360cb0d8625f12.tar.gz |
bitbake: 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).
(Bitbake rev: e75c68819086788bac1c4ca8a35aebeaf604e624)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bblayers')
-rw-r--r-- | bitbake/lib/bblayers/layerindex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py index 10ad718eba..f53a47fcfd 100644 --- a/bitbake/lib/bblayers/layerindex.py +++ b/bitbake/lib/bblayers/layerindex.py | |||
@@ -56,7 +56,7 @@ class LayerIndexPlugin(ActionPlugin): | |||
56 | r = conn.getresponse() | 56 | r = conn.getresponse() |
57 | if r.status != 200: | 57 | if r.status != 200: |
58 | raise Exception("Failed to read " + path + ": %d %s" % (r.status, r.reason)) | 58 | raise Exception("Failed to read " + path + ": %d %s" % (r.status, r.reason)) |
59 | return json.loads(r.read()) | 59 | return json.loads(r.read().decode()) |
60 | 60 | ||
61 | def get_layer_deps(self, layername, layeritems, layerbranches, layerdependencies, branchnum, selfname=False): | 61 | def get_layer_deps(self, layername, layeritems, layerbranches, layerdependencies, branchnum, selfname=False): |
62 | def layeritems_info_id(items_name, layeritems): | 62 | def layeritems_info_id(items_name, layeritems): |