From 9f91785cc57ee1e2aaeb8725b1c72927f16fcce6 Mon Sep 17 00:00:00 2001 From: Stephano Cetola Date: Fri, 10 Jun 2016 10:56:38 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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): 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 -- cgit v1.2.3-54-g00ecf