OSDN Git Service
(root)
/
android-x86
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c898974
)
delete source files not in target
author
Doug Zongker
<dougz@android.com>
Tue, 30 Jun 2009 15:16:58 +0000
(08:16 -0700)
committer
Doug Zongker
<dougz@android.com>
Tue, 30 Jun 2009 15:16:58 +0000
(08:16 -0700)
Incremental OTAs were not removing files from the old build that don't
exist in the new build. Fix.
tools/releasetools/ota_from_target_files
patch
|
blob
|
history
diff --git
a/tools/releasetools/ota_from_target_files
b/tools/releasetools/ota_from_target_files
index
547c65c
..
ea4c752
100755
(executable)
--- a/
tools/releasetools/ota_from_target_files
+++ b/
tools/releasetools/ota_from_target_files
@@
-580,7
+580,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