[gnome-continuous-yocto/gnomeostree-3.28-rocko: 983/8267] bitbake: fetch2: fix unpacking of deb packages



commit 9f91785cc57ee1e2aaeb8725b1c72927f16fcce6
Author: Stephano Cetola <stephano cetola linux intel com>
Date:   Fri Jun 10 10:56:38 2016 -0700

    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>

 bitbake/lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f612318..a63498a 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]