forked from platformio/platformio-core
Fix an issue with manifest parser when "new_from_archive" API is used
This commit is contained in:
@ -122,7 +122,9 @@ class ManifestParserFactory(object):
|
|||||||
with tarfile.open(path, mode="r:gz") as tf:
|
with tarfile.open(path, mode="r:gz") as tf:
|
||||||
for t in sorted(ManifestFileType.items().values()):
|
for t in sorted(ManifestFileType.items().values()):
|
||||||
try:
|
try:
|
||||||
return ManifestParserFactory.new(tf.extractfile(t).read(), t)
|
return ManifestParserFactory.new(
|
||||||
|
tf.extractfile(t).read().decode(), t
|
||||||
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
raise UnknownManifestError("Unknown manifest file type in %s archive" % path)
|
raise UnknownManifestError("Unknown manifest file type in %s archive" % path)
|
||||||
|
Reference in New Issue
Block a user