diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 3b1d24fff2..4aaff8ca43 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -1411,7 +1411,7 @@ class RpmPM(PackageManager): | |||
1411 | def package_info(self, pkg): | 1411 | def package_info(self, pkg): |
1412 | cmd = "%s %s info --urls %s" % (self.smart_cmd, self.smart_opt, pkg) | 1412 | cmd = "%s %s info --urls %s" % (self.smart_cmd, self.smart_opt, pkg) |
1413 | try: | 1413 | try: |
1414 | output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | 1414 | output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True).decode("utf-8") |
1415 | except subprocess.CalledProcessError as e: | 1415 | except subprocess.CalledProcessError as e: |
1416 | bb.fatal("Unable to list available packages. Command '%s' " | 1416 | bb.fatal("Unable to list available packages. Command '%s' " |
1417 | "returned %d:\n%s" % (cmd, e.returncode, e.output.decode("utf-8"))) | 1417 | "returned %d:\n%s" % (cmd, e.returncode, e.output.decode("utf-8"))) |
@@ -1506,7 +1506,7 @@ class OpkgDpkgPM(PackageManager): | |||
1506 | def package_info(self, pkg, cmd): | 1506 | def package_info(self, pkg, cmd): |
1507 | 1507 | ||
1508 | try: | 1508 | try: |
1509 | output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | 1509 | output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True).decode("utf-8") |
1510 | except subprocess.CalledProcessError as e: | 1510 | except subprocess.CalledProcessError as e: |
1511 | bb.fatal("Unable to list available packages. Command '%s' " | 1511 | bb.fatal("Unable to list available packages. Command '%s' " |
1512 | "returned %d:\n%s" % (cmd, e.returncode, e.output.decode("utf-8"))) | 1512 | "returned %d:\n%s" % (cmd, e.returncode, e.output.decode("utf-8"))) |