From: Stephano Cetola Date: Fri, 10 Jun 2016 17:56:38 +0000 (-0700) Subject: fetch2: fix unpacking of deb packages X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1072beefe172423873a22a10c7171e10d0401e1e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index f612318cc57..a63498a88bb 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