From a688edbdf1a2f9b50719a45d282af0d3ee70fdfd Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 9 Jul 2020 21:53:46 +0300 Subject: [PATCH] Fix an issue with manifest parser when "new_from_archive" API is used --- platformio/package/manifest/parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio/package/manifest/parser.py b/platformio/package/manifest/parser.py index 8ba94344..6507849d 100644 --- a/platformio/package/manifest/parser.py +++ b/platformio/package/manifest/parser.py @@ -122,7 +122,9 @@ class ManifestParserFactory(object): with tarfile.open(path, mode="r:gz") as tf: for t in sorted(ManifestFileType.items().values()): try: - return ManifestParserFactory.new(tf.extractfile(t).read(), t) + return ManifestParserFactory.new( + tf.extractfile(t).read().decode(), t + ) except KeyError: pass raise UnknownManifestError("Unknown manifest file type in %s archive" % path)