incremental OTAs should remove /system/recovery.img

This file has been replaced by the recovery_from_boot.p patch file,
but needs to be removed from existing devices if it exists.
This commit is contained in:
Doug Zongker 2009-08-24 10:24:32 -07:00
parent e05628cc8d
commit 3b949f0725
1 changed files with 2 additions and 1 deletions

View File

@ -618,7 +618,8 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
script.Print("Removing unneeded files...")
script.DeleteFiles(["/"+i[0] for i in verbatim_targets] +
["/"+i for i in sorted(source_data)
if i not in target_data])
if i not in target_data] +
["/system/recovery.img"])
if updating_boot:
# Produce the boot image by applying a patch to the current