5606a2640c
When running on a cloudtop, for example, the tmp space may be part of a different filesystem than the user space where the package is being registered. In this case a simple rename doesn't work, we have to copy the files and delete the old one. The script was also getting confused when a previous install failed. The partial setup was leading to errors while trying to uninstall the old verison. Change-Id: I67f04547bc5279adc5f0d9f528cc9224c1f54e64 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452000 Commit-Queue: Nate Biggs <natebiggs@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>