Merge "releasetools: Unzip all files when generating image archive."
am: e77dbd2a62
Change-Id: Ibd6965c0b9517fe24e6f3267dc55700f3f320d18
This commit is contained in:
@@ -180,8 +180,10 @@ def main(argv):
|
|||||||
OPTIONS.input_tmp = target_files
|
OPTIONS.input_tmp = target_files
|
||||||
elif zipfile.is_zipfile(target_files):
|
elif zipfile.is_zipfile(target_files):
|
||||||
logger.info("Building image zip from target files zip.")
|
logger.info("Building image zip from target files zip.")
|
||||||
OPTIONS.input_tmp = common.UnzipTemp(target_files,
|
# We need files under IMAGES/, OTA/, META/ for img_from_target_files.py.
|
||||||
["IMAGES/*", "OTA/*", "META/*"])
|
# However, common.LoadInfoDict() may read additional files under BOOT/,
|
||||||
|
# RECOVERY/ and ROOT/. So unzip everything from the target_files.zip.
|
||||||
|
OPTIONS.input_tmp = common.UnzipTemp(target_files)
|
||||||
else:
|
else:
|
||||||
raise ValueError("%s is not a valid path." % target_files)
|
raise ValueError("%s is not a valid path." % target_files)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user