Ignore cleanup errors.

Certain binaries may have restrictive permissions.

BUG: 221492085
Test: TH
Change-Id: I56f3c172d9e2c3947e513bdf0b2072457061c547
This commit is contained in:
Baligh Uddin
2022-02-26 02:34:06 +00:00
parent 8fa04e25a3
commit be2d7d0ce1

View File

@@ -214,7 +214,7 @@ class ApexApkSigner(object):
if os.path.isfile(path):
os.remove(path)
elif os.path.isdir(path):
shutil.rmtree(path)
shutil.rmtree(path, ignore_errors=True)
# TODO(xunchang) the signing process can be improved by using
# '--unsigned_payload_only'. But we need to parse the vbmeta earlier for