From 6531dcbc78e0cd287c871f2fd49ba9c74dd5f7c0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 16 Sep 2019 21:38:47 +0300 Subject: [PATCH] Allow to skip checking of unpacked data --- platformio/unpacker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/unpacker.py b/platformio/unpacker.py index 271b4911..4d018072 100644 --- a/platformio/unpacker.py +++ b/platformio/unpacker.py @@ -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)