[oe-commits] [bitbake] 03/04: fetch2: fix unpacking of deb packages
git at git.openembedded.org
git at git.openembedded.org
Thu Jun 16 10:55:35 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 1642214e567084fde87b135de9a151433bfc1a4c
Author: Stephano Cetola <stephano.cetola at linux.intel.com>
AuthorDate: Fri Jun 10 10:56:38 2016 -0700
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/fetch2/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index f612318..a63498a 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list