diff options
author | Raphael Moll <ralf@android.com> | 2010-12-29 14:57:38 -0800 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2011-01-03 21:56:58 -0800 |
commit | 2b53c912359ac3016f20b7b19cf893acbddb82cc (patch) | |
tree | 0b653df61c3439a4885963d9f9e4ca27439ef557 /docs | |
parent | 7cb26434691539a9091e618e623766be5b57dc26 (diff) | |
download | sdk-2b53c912359ac3016f20b7b19cf893acbddb82cc.zip sdk-2b53c912359ac3016f20b7b19cf893acbddb82cc.tar.gz sdk-2b53c912359ac3016f20b7b19cf893acbddb82cc.tar.bz2 |
SDK Manager: Rework install logic.
This should get rid of the annoying behavior on Windows
that prevent the "folder swap" operation due to the folders
being locked. Cf public issue 4410.
High level summary of the issue and the fix: the old behavior
was to unzip in a temp folder, then rename the old folder to
another temp file and finally rename the new folder at the
desired location. This fails typically when there is a file
indexer (e.g. anti-virus) scanning the new folder so we can't
move that folder.
The new logic is to try to move the old folder first into a
temp folder. If the fail move, we have a lock on the old folder
and ask the user to fix it manually. They probably have a file
opened and it's a legit issue to report. Once that succeeded
we can directly unzip the archive into the final destination
without using a temp unzip location, thus avoiding the common
"indexer in progress" issue.
In case the unzip operation fails, we try to copy (not move) the
old folder back.
Change-Id: I5ed67ff626532fe7cc48a45e87d1dbaf6954f28a
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions