releasetools: common.UnzipTemp() filters out non-matching patterns.
common.UnzipTemp() calls `unzip` to do the unzipping, which will complain if there's non-existent names in the given list. Prior to this CL, callers had to do the work to remove non-existent entries. This CL filters out the given patterns in common.UnzipTemp()/common.UnzipToDir() to make callers' works easier. Bug: 128848294 Test: `m dist` with aosp_taimen-userdebug (which calls ota_from_target_files.py on a target_files.zip that doesn't contain RADIO/*). Test: `python -m unittest test_common.CommonZipTest` Change-Id: I5e741c27ea8d0b8126c398a7e1b56a8deb4a3d7f
Loading
Please register or sign in to comment