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:
commit
44f41fa793
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue