am 63e63c2a: am 543b28d4: Merge "Pass source\'s info_dict to vendor\'s releasetools.py."
* commit '63e63c2a0754e726d6f810588a0314a79268f404': Pass source's info_dict to vendor's releasetools.py.
This commit is contained in:
commit
db078f5166
|
@ -59,6 +59,8 @@ class Options(object):
|
|||
self.device_specific = None
|
||||
self.extras = {}
|
||||
self.info_dict = None
|
||||
self.source_info_dict = None
|
||||
self.target_info_dict = None
|
||||
self.worker_threads = None
|
||||
# Stash size cannot exceed cache_size * threshold.
|
||||
self.cache_size = None
|
||||
|
@ -1259,7 +1261,8 @@ class BlockDifference(object):
|
|||
self.path = os.path.join(tmpdir, partition)
|
||||
b.Compute(self.path)
|
||||
|
||||
_, self.device = GetTypeAndDevice("/" + partition, OPTIONS.info_dict)
|
||||
_, self.device = GetTypeAndDevice("/" + partition,
|
||||
OPTIONS.source_info_dict)
|
||||
|
||||
def WriteScript(self, script, output_zip, progress=None):
|
||||
if not self.src:
|
||||
|
@ -1464,6 +1467,8 @@ def MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img,
|
|||
output_sink("recovery-from-boot.p", patch)
|
||||
|
||||
try:
|
||||
# The following GetTypeAndDevice()s need to use the path in the target
|
||||
# info_dict instead of source_info_dict.
|
||||
boot_type, boot_device = GetTypeAndDevice("/boot", info_dict)
|
||||
recovery_type, recovery_device = GetTypeAndDevice("/recovery", info_dict)
|
||||
except KeyError:
|
||||
|
|
|
@ -772,7 +772,7 @@ def WriteBlockIncrementalOTAPackage(target_zip, source_zip, output_zip):
|
|||
output_zip=output_zip,
|
||||
script=script,
|
||||
metadata=metadata,
|
||||
info_dict=OPTIONS.info_dict)
|
||||
info_dict=OPTIONS.source_info_dict)
|
||||
|
||||
source_fp = CalculateFingerprint(oem_props, oem_dict,
|
||||
OPTIONS.source_info_dict)
|
||||
|
@ -1160,7 +1160,7 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
|
|||
output_zip=output_zip,
|
||||
script=script,
|
||||
metadata=metadata,
|
||||
info_dict=OPTIONS.info_dict)
|
||||
info_dict=OPTIONS.source_info_dict)
|
||||
|
||||
system_diff = FileDifference("system", source_zip, target_zip, output_zip)
|
||||
script.Mount("/system", recovery_mount_options)
|
||||
|
|
Loading…
Reference in New Issue