diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-21 14:25:16 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-21 14:25:16 +0100 |
commit | 01dbebdfc81abab00048f48e68a4e04d391bc50e (patch) | |
tree | 861e08b1158467b5e5894548ed72c35fc1b44317 /logic/net/MD5EtagDownload.h | |
parent | 0f6ad12fd8d4b1b727891f6fa0fb69f09f64e827 (diff) | |
download | MultiMC-01dbebdfc81abab00048f48e68a4e04d391bc50e.tar MultiMC-01dbebdfc81abab00048f48e68a4e04d391bc50e.tar.gz MultiMC-01dbebdfc81abab00048f48e68a4e04d391bc50e.tar.lz MultiMC-01dbebdfc81abab00048f48e68a4e04d391bc50e.tar.xz MultiMC-01dbebdfc81abab00048f48e68a4e04d391bc50e.zip |
Fix issues with the updater
* Bad URLs used for downloading update files
* MD5ETagDownload resetting the expected ETag after failure to the failed file MD5 checksum
* Delete MD5ETagDownload downloaded files if the download fails.
Diffstat (limited to 'logic/net/MD5EtagDownload.h')
-rw-r--r-- | logic/net/MD5EtagDownload.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/logic/net/MD5EtagDownload.h b/logic/net/MD5EtagDownload.h index 416ab9de..d5aed0ca 100644 --- a/logic/net/MD5EtagDownload.h +++ b/logic/net/MD5EtagDownload.h @@ -23,12 +23,10 @@ class MD5EtagDownload : public NetAction { Q_OBJECT public: - /// if true, check the md5sum against a provided md5sum - /// also, if a file exists, perform an md5sum first and don't download only if they don't - /// match - bool m_check_md5; - /// the expected md5 checksum + /// the expected md5 checksum. Only set from outside QString m_expected_md5; + /// the md5 checksum of a file that already exists. + QString m_local_md5; /// if saving to file, use the one specified in this string QString m_target_path; /// this is the output file, if any |