Merge "releasetools: Fix the bug that skips loading OEM dict." am: 7889375102
am: 80fb79f200
am: a61ffc1291
Change-Id: I3bcaf431c53b8ae82357f71ef41907297cd885fc
This commit is contained in:
commit
8393ee7722
1 changed files with 4 additions and 6 deletions
|
@ -409,10 +409,10 @@ def WriteFullOTAPackage(input_zip, output_zip):
|
|||
# in the target build.
|
||||
script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
|
||||
|
||||
recovery_mount_options = OPTIONS.info_dict.get("recovery_mount_options")
|
||||
oem_props = OPTIONS.info_dict.get("oem_fingerprint_properties")
|
||||
oem_dicts = None
|
||||
if oem_props:
|
||||
recovery_mount_options = OPTIONS.info_dict.get("recovery_mount_options")
|
||||
oem_dicts = _LoadOemDicts(script, recovery_mount_options)
|
||||
|
||||
target_fp = CalculateFingerprint(oem_props, oem_dicts and oem_dicts[0],
|
||||
|
@ -503,8 +503,6 @@ else if get_stage("%(bcb_dev)s") == "3/3" then
|
|||
if HasVendorPartition(input_zip):
|
||||
system_progress -= 0.1
|
||||
|
||||
recovery_mount_options = OPTIONS.info_dict.get("recovery_mount_options")
|
||||
|
||||
script.ShowProgress(system_progress, 0)
|
||||
|
||||
# Full OTA is done as an "incremental" against an empty source image. This
|
||||
|
@ -632,12 +630,12 @@ def WriteBlockIncrementalOTAPackage(target_zip, source_zip, output_zip):
|
|||
source_version, OPTIONS.target_info_dict,
|
||||
fstab=OPTIONS.source_info_dict["fstab"])
|
||||
|
||||
recovery_mount_options = OPTIONS.source_info_dict.get(
|
||||
"recovery_mount_options")
|
||||
source_oem_props = OPTIONS.source_info_dict.get("oem_fingerprint_properties")
|
||||
target_oem_props = OPTIONS.target_info_dict.get("oem_fingerprint_properties")
|
||||
oem_dicts = None
|
||||
if source_oem_props and target_oem_props:
|
||||
if source_oem_props or target_oem_props:
|
||||
recovery_mount_options = OPTIONS.source_info_dict.get(
|
||||
"recovery_mount_options")
|
||||
oem_dicts = _LoadOemDicts(script, recovery_mount_options)
|
||||
|
||||
metadata = {
|
||||
|
|
Loading…
Reference in a new issue