diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-02-08 03:42:12 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-02-08 03:42:12 +0000 |
commit | f6cd3a1ddd3e9b587c9870c592e9e1bda1ebf12a (patch) | |
tree | 7aa5bfc0a8b747afdf631a6192a295b874258263 | |
parent | 691f8b93c7c96b8150ad060be511a677d271a77a (diff) | |
parent | 9d021e996bf66cb6ff9f9cd5889853fa79e4d3fd (diff) | |
download | build-f6cd3a1ddd3e9b587c9870c592e9e1bda1ebf12a.tar.gz |
Merge "Fix small misuse of pass"
-rw-r--r-- | tools/releasetools/add_img_to_target_files.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/add_img_to_target_files.py b/tools/releasetools/add_img_to_target_files.py index 4be2ceaf6a..9a9fba148d 100644 --- a/tools/releasetools/add_img_to_target_files.py +++ b/tools/releasetools/add_img_to_target_files.py @@ -1027,10 +1027,10 @@ def OptimizeCompressedEntries(zipfile_path): with zipfile.ZipFile(zipfile_path, "r", allowZip64=True) as zfp: for zinfo in zfp.filelist: if not zinfo.filename.startswith("IMAGES/") and not zinfo.filename.startswith("META"): - pass + continue # Don't try to store userdata.img uncompressed, it's usually huge. if zinfo.filename.endswith("userdata.img"): - pass + continue if zinfo.compress_size > zinfo.file_size * 0.80 and zinfo.compress_type != zipfile.ZIP_STORED: entries_to_store.append(zinfo) zfp.extract(zinfo, tmpdir) |