summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2022-03-02 23:51:43 +1030
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-04 17:14:15 +0000
commitef518a327dd7940df6028bb0c98b60fb9ca8629d (patch)
treeebe2169cfa8a6d3213aeda63f059e5500dcb9d9a
parent13663357493bfab96927cc77bcc0114bace94122 (diff)
downloadpoky-ef518a327dd7940df6028bb0c98b60fb9ca8629d.tar.gz
ipk: Decode byte data to string in manifest handling
``` File: '/home/andrew/src/openbmc/openbmc/meta/lib/oe/package_manager/ipk/manifest.py', lineno: 69, function: create_full 0065: output = pm.dummy_install(pkgs_to_install) 0066: 0067: with open(self.full_manifest, 'w+') as manifest: 0068: pkg_re = re.compile('^Installing ([^ ]+) [^ ].*') *** 0069: for line in set(output.split('\n')): 0070: m = pkg_re.match(line) 0071: if m: 0072: manifest.write(m.group(1) + '\n') 0073: Exception: TypeError: a bytes-like object is required, not 'str' ``` Change-Id: Ifefb13bfa22c766d20ab9f73f7abe5163b3df86f (From OE-Core rev: cf9df9e8d89fee9cea4785c94a1e3004a5f3469d) Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/package_manager/ipk/manifest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager/ipk/manifest.py b/meta/lib/oe/package_manager/ipk/manifest.py
index 22669f97c0..ae451c5c70 100644
--- a/meta/lib/oe/package_manager/ipk/manifest.py
+++ b/meta/lib/oe/package_manager/ipk/manifest.py
@@ -62,7 +62,7 @@ class PkgManifest(Manifest):
62 if len(pkgs_to_install) == 0: 62 if len(pkgs_to_install) == 0:
63 return 63 return
64 64
65 output = pm.dummy_install(pkgs_to_install) 65 output = pm.dummy_install(pkgs_to_install).decode('utf-8')
66 66
67 with open(self.full_manifest, 'w+') as manifest: 67 with open(self.full_manifest, 'w+') as manifest:
68 pkg_re = re.compile('^Installing ([^ ]+) [^ ].*') 68 pkg_re = re.compile('^Installing ([^ ]+) [^ ].*')