commit | 67698d1888acc9f2d418833b147e1efe5f0a739a | [log] [tgz] |
---|---|---|
author | Dennis Song <denniscy@google.com> | Tue Oct 29 03:40:36 2024 +0000 |
committer | Dennis Song <denniscy@google.com> | Tue Oct 29 06:18:39 2024 +0000 |
tree | 68a87dd851c235cf7780a115afb693f69d7a1efd | |
parent | 77a98d3117e1ecbbff769a1c526319ff3ce852ae [diff] |
Prevent exception when removing nonexistent file from a ramdisk fragment. The previous implementation raised a FileNotFoundError if the file to be removed did not exist in every extracted ramdisks. This commit modifies this logic to attempt the file removal and only raise the FileNotFoundError if the file was not successfully removed from any of the ramdisk fragments. Bug: 376159628 Test: build_cf_hybrid_device Change-Id: I72e5c70597215974ce3c7c3b2b39e9b58d3aaf55