summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/ota_from_target_files
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-05-09 13:15:01 -0700
committerDoug Zongker <dougz@android.com>2014-05-09 13:16:50 -0700
commit91a99c28e0d15a753bc303982c970c96d6dfe0f5 (patch)
tree3dd5232e893f4f4e148137a76d29f88f3a29207e /tools/releasetools/ota_from_target_files
parent1aebed3659ab3cfbed133981cbbc3b27d83ae9f5 (diff)
downloadbuild-91a99c28e0d15a753bc303982c970c96d6dfe0f5.zip
build-91a99c28e0d15a753bc303982c970c96d6dfe0f5.tar.gz
build-91a99c28e0d15a753bc303982c970c96d6dfe0f5.tar.bz2
fix ota script to generate non-block commands correctly
If you had a target_files without a recovery patch and specified --block (which should have no effect without a patch), it would have omitted some necessary commands from the OTA script. Change-Id: I96e79cd561ebf09cfe53792d1cc558cc71479869
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-xtools/releasetools/ota_from_target_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files
index cbfc087..7019c46 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -516,7 +516,7 @@ else if get_stage("%(bcb_dev)s", "stage") == "3/3" then
boot_img = common.GetBootableImage("boot.img", "boot.img",
OPTIONS.input_tmp, "BOOT")
- if not has_recovery_patch:
+ if not block_based:
def output_sink(fn, data):
common.ZipWriteStr(output_zip, "recovery/" + fn, data)
Item.Get("system/" + fn, dir=False)