-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only replace file when newly downloaded file is different
Previously, when a file was downloaded, for example when no ETags were available or used and/or Last-Modified header isn't available, we always replaced the output file with the newly downloaded file making the --keep=n functionality useless because the same file could replace all stored versions after n attempts to update the file. Now, we compare file size and if file size is equal we try to compare sha256sum or md5sum to determine if the newly downloaded file is different from the current file.
- Loading branch information
Showing
1 changed file
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters