Merge "Fix duplicate super_empty.img" am: 67ca3c05c7
Original change: https://android-review.googlesource.com/c/platform/build/+/2540970 Change-Id: I15da5d8b64dd98afc62040aad78ea2169f75b067 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user