summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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:58 +0100
commit9f91785cc57ee1e2aaeb8725b1c72927f16fcce6 (patch)
tree1fb032bf498e8102e8db568c725a980675b75d90 /bitbake/lib/bb
parent34dc5b35737d7e6fd0742414614a7676115e2ab8 (diff)
downloadpoky-9f91785cc57ee1e2aaeb8725b1c72927f16fcce6.tar.gz
bitbake: 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. (Bitbake rev: 1072beefe172423873a22a10c7171e10d0401e1e) Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f612318cc5..a63498a88b 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1395,7 +1395,7 @@ class FetchMethod(object):
1395 output = subprocess.check_output('ar -t %s' % file, preexec_fn=subprocess_setup, shell=True) 1395 output = subprocess.check_output('ar -t %s' % file, preexec_fn=subprocess_setup, shell=True)
1396 datafile = None 1396 datafile = None
1397 if output: 1397 if output:
1398 for line in output.splitlines(): 1398 for line in output.decode().splitlines():
1399 if line.startswith('data.tar.'): 1399 if line.startswith('data.tar.'):
1400 datafile = line 1400 datafile = line
1401 break 1401 break