[OE-core] [PATCH 1/2] devtool: update-recipe: decode output before treating it as a string
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Nov 3 02:53:53 UTC 2016
When you receive output from subprocess, with Python 3 it's a stream of
bytes so you need to decode it before you can start treating it as a
string.
Fixes [YOCTO #10447].
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
scripts/lib/devtool/standard.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 4eff6f8..32eac23 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -331,6 +331,7 @@ def _git_ls_tree(repodir, treeish='HEAD', recursive=False):
cmd.append('-r')
out, _ = bb.process.run(cmd, cwd=repodir)
ret = {}
+ out = out.decode('utf-8')
for line in out.split('\0'):
if line:
split = line.split(None, 4)
--
2.5.5
More information about the Openembedded-core
mailing list