diff options
author | Tao Bao <tbao@google.com> | 2015-09-02 10:28:08 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2015-09-02 21:21:17 -0700 |
commit | 39c322cefcc0ecba76a2ffb8881694fd010a87fc (patch) | |
tree | 264efa97ad1345392b34ebd9e795e82250d59c2f /target/product | |
parent | 057831bc665b15d7beda970b91b2c332dee417f0 (diff) | |
download | build-39c322cefcc0ecba76a2ffb8881694fd010a87fc.zip build-39c322cefcc0ecba76a2ffb8881694fd010a87fc.tar.gz build-39c322cefcc0ecba76a2ffb8881694fd010a87fc.tar.bz2 |
releasetools: Fix the bug in symlink deletion.
For file-based OTAs, symlinks in the source build but not in the target
build will be deleted. However, if a symlink is replaced by a regular
file in the target build, the file will be accidentally deleted when
applying (resuming) the same package again.
Verify the checksum of a symlink that will be unpacked or renamed to.
Delete the file only if it doesn't have the target checksum.
Bug: 23646151
Change-Id: I77bae035e39f2e0be25f7f6d71c5882464e3d50f
(cherry picked from commit 84006eacd05e3f2784a0ecdf36609767f2c34044)
Diffstat (limited to 'target/product')
0 files changed, 0 insertions, 0 deletions