am 0f3298a4
: delete source files not in target
Merge commit '0f3298a497e32f6c2325a0071124a62d031fae6f' * commit '0f3298a497e32f6c2325a0071124a62d031fae6f': delete source files not in target
This commit is contained in:
committed by
The Android Open Source Project
commit
acb8bda3bb
@@ -585,7 +585,9 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
|
||||
script.FormatPartition("userdata")
|
||||
|
||||
script.Print("Removing unneeded files...")
|
||||
script.DeleteFiles(["/"+i[0] for i in verbatim_targets])
|
||||
script.DeleteFiles(["/"+i[0] for i in verbatim_targets] +
|
||||
["/"+i for i in sorted(source_data)
|
||||
if i not in target_data])
|
||||
|
||||
if updating_boot:
|
||||
# Produce the boot image by applying a patch to the current
|
||||
|
Reference in New Issue
Block a user