forked from platformio/platformio-core
fix package type detector
This commit is contained in:
@ -45,12 +45,12 @@ class PackageType(object):
|
|||||||
manifest_map = cls.get_manifest_map()
|
manifest_map = cls.get_manifest_map()
|
||||||
with tarfile.open(path, mode="r|gz") as tf:
|
with tarfile.open(path, mode="r|gz") as tf:
|
||||||
for t in sorted(cls.items().values()):
|
for t in sorted(cls.items().values()):
|
||||||
try:
|
for manifest in manifest_map[t]:
|
||||||
for manifest in manifest_map[t]:
|
try:
|
||||||
if tf.getmember(manifest):
|
if tf.getmember(manifest):
|
||||||
return t
|
return t
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user