]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
devtool: update-recipe: decode output before treating it as a string
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 2 Nov 2016 03:46:20 +0000 (16:46 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 3 Nov 2016 02:55:07 +0000 (15:55 +1300)
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 #10563].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/lib/devtool/standard.py

index 4eff6f878b0a912465992cf6a3731e3a089d2431..32eac23a62eb59cd9655187fe024a33ce03f6d2a 100644 (file)
@@ -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)