Merge "Supply apex_info.pb as parameter to delta_generator if file exists"

This commit is contained in:
Treehugger Robot 2023-06-09 19:23:31 +00:00 committed by Gerrit Code Review
commit df2af7c840

View file

@ -846,6 +846,11 @@ class PayloadGenerator(object):
if os.path.exists(dynamic_partition_info):
cmd.extend(["--dynamic_partition_info_file", dynamic_partition_info])
apex_info = os.path.join(
target_dir, "META", "apex_info.pb")
if os.path.exists(apex_info):
cmd.extend(["--apex_info_file", apex_info])
major_version, minor_version = ParseUpdateEngineConfig(
os.path.join(target_dir, "META", "update_engine_config.txt"))
if source_file: