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
This commit is contained in:
Doug Zongker
2014-05-09 13:15:01 -07:00
parent 1aebed3659
commit 91a99c28e0

View File

@@ -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)