summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-08-06 17:24:43 -0700
committerTianjie Xu <xunchang@google.com>2019-08-07 17:23:08 -0700
commit14715ced5bbe551e06009afdd3712f84dc5b1818 (patch)
treee1e7a694c32bbd9fe74c278cc84b8d98a060b1fb /scripts/update_payload/format_utils.py
parent30fa5f523f850cf425329642fcdfedbb2c47758f (diff)
Stop using unzip -p when extracting images
brillo_update_payload uses `unzip -p` to extract images to a named temp file. But the command doesn't generate an error when the disk is full. This cl creates a helper function and switches to use `unzip -d` to extract the image; and then move the extracted image to the intended name. Bug: 138725843 Test: generate and verify a payload, check the extract error when disk is full Change-Id: I71c2d07de3c1c826f2e07fcc6497437c4051944f
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions