Merge "Fix duplicate super_empty.img"

This commit is contained in:
Treehugger Robot 2023-04-17 21:19:13 +00:00 committed by Gerrit Code Review
commit 67ca3c05c7

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()