Filter out ab_partitions in source_info as well
When generating a incremental partial OTA, we need to filter out partitions in ab_partitions which are not in partial list Test: Generate a partial incremental OTA Change-Id: Iff7748ce6181a9a231557de0539004211587232c
This commit is contained in:
@@ -1254,11 +1254,6 @@ def main(argv):
|
|||||||
OPTIONS.info_dict = common.LoadInfoDict(OPTIONS.extracted_input)
|
OPTIONS.info_dict = common.LoadInfoDict(OPTIONS.extracted_input)
|
||||||
else:
|
else:
|
||||||
OPTIONS.info_dict = ParseInfoDict(args[0])
|
OPTIONS.info_dict = ParseInfoDict(args[0])
|
||||||
if OPTIONS.partial:
|
|
||||||
OPTIONS.info_dict['ab_partitions'] = \
|
|
||||||
list(
|
|
||||||
set(OPTIONS.info_dict['ab_partitions']) & set(OPTIONS.partial)
|
|
||||||
)
|
|
||||||
|
|
||||||
if OPTIONS.downgrade:
|
if OPTIONS.downgrade:
|
||||||
# We should only allow downgrading incrementals (as opposed to full).
|
# We should only allow downgrading incrementals (as opposed to full).
|
||||||
@@ -1284,6 +1279,17 @@ def main(argv):
|
|||||||
logger.info("--- source info ---")
|
logger.info("--- source info ---")
|
||||||
common.DumpInfoDict(OPTIONS.source_info_dict)
|
common.DumpInfoDict(OPTIONS.source_info_dict)
|
||||||
|
|
||||||
|
if OPTIONS.partial:
|
||||||
|
OPTIONS.info_dict['ab_partitions'] = \
|
||||||
|
list(
|
||||||
|
set(OPTIONS.info_dict['ab_partitions']) & set(OPTIONS.partial)
|
||||||
|
)
|
||||||
|
if OPTIONS.source_info_dict:
|
||||||
|
OPTIONS.source_info_dict['ab_partitions'] = \
|
||||||
|
list(
|
||||||
|
set(OPTIONS.source_info_dict['ab_partitions']) & set(OPTIONS.partial)
|
||||||
|
)
|
||||||
|
|
||||||
# Load OEM dicts if provided.
|
# Load OEM dicts if provided.
|
||||||
OPTIONS.oem_dicts = _LoadOemDicts(OPTIONS.oem_source)
|
OPTIONS.oem_dicts = _LoadOemDicts(OPTIONS.oem_source)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user