summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorStephano Cetola <stephano.cetola@linux.intel.com>2016-06-10 10:56:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-16 17:37:52 +0100
commit1072beefe172423873a22a10c7171e10d0401e1e (patch)
treeca8db3c674365ed69715d1b0974052b5d883bafb /lib/bb/fetch2/__init__.py
parenta3ebeb37f7bd4cffe6707c634b4f0a0ea52ccc45 (diff)
downloadbitbake-contrib-1072beefe172423873a22a10c7171e10d0401e1e.tar.gz
fetch2: fix unpacking of deb packages
Python 3 changed the return value of check_output to binary rather than a string. This fix decodes the binary before calling splitlines, which requires a string. Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r--lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index f612318cc..a63498a88 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1395,7 +1395,7 @@ class FetchMethod(object):
output = subprocess.check_output('ar -t %s' % file, preexec_fn=subprocess_setup, shell=True)
datafile = None
if output:
- for line in output.splitlines():
+ for line in output.decode().splitlines():
if line.startswith('data.tar.'):
datafile = line
break