Merge "Fix duplicate super_empty.img" am: 67ca3c05c7
am: 8670880361
Original change: https://android-review.googlesource.com/c/platform/build/+/2540970 Change-Id: I01db0c5e3d039df6a61c880d7a1cfeaa8dba7967 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."""
|
"""Create a super_empty.img and store it in output_zip."""
|
||||||
|
|
||||||
img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "super_empty.img")
|
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)
|
build_super_image.BuildSuperImage(OPTIONS.info_dict, img.name)
|
||||||
img.Write()
|
img.Write()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user