From be2d7d0ce12a137351a1b6f5dba52eeea0169d57 Mon Sep 17 00:00:00 2001 From: Baligh Uddin Date: Sat, 26 Feb 2022 02:34:06 +0000 Subject: [PATCH] Ignore cleanup errors. Certain binaries may have restrictive permissions. BUG: 221492085 Test: TH Change-Id: I56f3c172d9e2c3947e513bdf0b2072457061c547 --- tools/releasetools/apex_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releasetools/apex_utils.py b/tools/releasetools/apex_utils.py index 69d6c137f1..3f13a4a5de 100644 --- a/tools/releasetools/apex_utils.py +++ b/tools/releasetools/apex_utils.py @@ -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