Merge "Fix duplicate super_empty.img" am: 67ca3c05c7 am: 8670880361 am: 0e04817b44 am: 9362cc8e1c

Original change: https://android-review.googlesource.com/c/platform/build/+/2540970

Change-Id: I08d16a9b96d623e1efe0935a3b343a8e97b6293f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-04-17 23:15:42 +00:00 committed by Automerger Merge Worker
commit 44f41fa793

View file

@ -818,6 +818,9 @@ def AddSuperEmpty(output_zip):
"""Create a super_empty.img and store it in output_zip."""
img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "super_empty.img")
if os.path.exists(img.name):
logger.info("super_empty.img already exists; no need to rebuild...")
return
build_super_image.BuildSuperImage(OPTIONS.info_dict, img.name)
img.Write()