Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get_url: Verify checksum using tmpsrc, not dest
Previously, if the checksum of the downloaded file did not match the specified checksum, the *destination* file was removed. This possibly leaves the system that is being provisioned in an invalid state. Instead, the checksum should be calculated on the temporary file only. If there's a mismatch, delete the *temporary* file, not the destination file. This requires checking the checksum before moving the file.
- Loading branch information