summaryrefslogtreecommitdiffstats
path: root/scripts/cleanup-workdir
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-06-02 10:13:00 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 12:13:29 (GMT)
commit4e36eeee7797ed1e3418b3ccb81797211edab573 (patch)
treeb88f5a54e1c8d35d423c309e17f5c5d6c06bc5b2 /scripts/cleanup-workdir
parenta8314b9531c82d8e9a33792af8a804da2ad2a8fb (diff)
downloadpoky-4e36eeee7797ed1e3418b3ccb81797211edab573.tar.gz
scripts: python3: decode subprocess output
stdeout and stderr content returned by subprocess API has different types in Python 3(bytes) and Python 2(string). Decoding it to 'utf-8' makes it unicode on both pythons. (From OE-Core rev: ae4d36375683b6cfd48af25bfca70b2e77f7ade5) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/cleanup-workdir')
-rwxr-xr-xscripts/cleanup-workdir2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index fee464c..0b2cf99 100755
--- a/scripts/cleanup-workdir
+++ b/scripts/cleanup-workdir
@@ -45,7 +45,7 @@ def run_command(cmd):
45 if pipe.returncode != 0: 45 if pipe.returncode != 0:
46 print("Execute command '%s' failed." % cmd) 46 print("Execute command '%s' failed." % cmd)
47 sys.exit(1) 47 sys.exit(1)
48 return output 48 return output.decode('utf-8')
49 49
50def get_cur_arch_dirs(workdir, arch_dirs): 50def get_cur_arch_dirs(workdir, arch_dirs):
51 pattern = workdir + '/(.*?)/' 51 pattern = workdir + '/(.*?)/'