summaryrefslogtreecommitdiffstats
path: root/tools/releasetools
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2015-03-25 18:14:46 -0700
committerBrint E. Kriebel <bekit@cyngn.com>2016-01-29 16:02:27 -0800
commite129b5e740038d3408fad1c6d442f95e2a2b2987 (patch)
tree0bccb4e3cf1593b62ac032a58d28b19fcd237641 /tools/releasetools
parent1a1555ca3280757ececacacc38ea1e0d25afb6ed (diff)
downloadbuild-e129b5e740038d3408fad1c6d442f95e2a2b2987.zip
build-e129b5e740038d3408fad1c6d442f95e2a2b2987.tar.gz
build-e129b5e740038d3408fad1c6d442f95e2a2b2987.tar.bz2
releasetools: add compatibility for full ota functions with incrementals
Some device-specific releasetool functions may expect that input_zip and input_version are set. For incremental OTAs, target_zip and target_version are set instead. Set input_zip=target_zip and input_version=target_version to add compatibility with these functions. Change-Id: I6a04f67440618d3652396656cc1fe223d4a6b195 Ticket: RM-82
Diffstat (limited to 'tools/releasetools')
-rwxr-xr-xtools/releasetools/ota_from_target_files.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index bd34dc9..ff0ccb9 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -824,7 +824,9 @@ def WriteBlockIncrementalOTAPackage(target_zip, source_zip, output_zip):
source_zip=source_zip,
source_version=source_version,
target_zip=target_zip,
+ input_zip=target_zip,
target_version=target_version,
+ input_version=target_version,
output_zip=output_zip,
script=script,
metadata=metadata,
@@ -1229,7 +1231,9 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
source_zip=source_zip,
source_version=source_version,
target_zip=target_zip,
+ input_zip=target_zip,
target_version=target_version,
+ input_version=target_version,
output_zip=output_zip,
script=script,
metadata=metadata,