mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Allow to skip checking of unpacked data
This commit is contained in:
@ -110,7 +110,7 @@ class FileUnpacker(object):
|
||||
if self._unpacker:
|
||||
self._unpacker.close()
|
||||
|
||||
def unpack(self, dest_dir=".", with_progress=True):
|
||||
def unpack(self, dest_dir=".", with_progress=True, check_unpacked=True):
|
||||
assert self._unpacker
|
||||
if not with_progress:
|
||||
click.echo("Unpacking...")
|
||||
@ -122,6 +122,9 @@ class FileUnpacker(object):
|
||||
for item in pb:
|
||||
self._unpacker.extract_item(item, dest_dir)
|
||||
|
||||
if not check_unpacked:
|
||||
return True
|
||||
|
||||
# check on disk
|
||||
for item in self._unpacker.get_items():
|
||||
filename = self._unpacker.get_item_filename(item)
|
||||
|
Reference in New Issue
Block a user