[bitbake-devel] [PATCH] fetch2: fix unpacking of deb packages
Stephano Cetola
stephano.cetola at linux.intel.com
Fri Jun 10 17:56:38 UTC 2016
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>
---
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
--
2.8.3
More information about the bitbake-devel
mailing list