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>
This commit is contained in:
Stephano Cetola 2016-06-10 10:56:38 -07:00 committed by Richard Purdie
parent 34dc5b3573
commit 9f91785cc5
1 changed files with 1 additions and 1 deletions

View File

@ -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