mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07: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:
|
if self._unpacker:
|
||||||
self._unpacker.close()
|
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
|
assert self._unpacker
|
||||||
if not with_progress:
|
if not with_progress:
|
||||||
click.echo("Unpacking...")
|
click.echo("Unpacking...")
|
||||||
@ -122,6 +122,9 @@ class FileUnpacker(object):
|
|||||||
for item in pb:
|
for item in pb:
|
||||||
self._unpacker.extract_item(item, dest_dir)
|
self._unpacker.extract_item(item, dest_dir)
|
||||||
|
|
||||||
|
if not check_unpacked:
|
||||||
|
return True
|
||||||
|
|
||||||
# check on disk
|
# check on disk
|
||||||
for item in self._unpacker.get_items():
|
for item in self._unpacker.get_items():
|
||||||
filename = self._unpacker.get_item_filename(item)
|
filename = self._unpacker.get_item_filename(item)
|
||||||
|
Reference in New Issue
Block a user