summaryrefslogtreecommitdiffstats
path: root/logic/updater
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-02 23:58:53 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-02 23:58:53 +0100
commit1455f051e4762cf7409081f7db5cefb22d3c72bd (patch)
treee596ee7fb794f04f6c6d207251328f665411c605 /logic/updater
parent52bbf07fe5b6c614b361df0a66f054d57d36ab5d (diff)
downloadMultiMC-1455f051e4762cf7409081f7db5cefb22d3c72bd.tar
MultiMC-1455f051e4762cf7409081f7db5cefb22d3c72bd.tar.gz
MultiMC-1455f051e4762cf7409081f7db5cefb22d3c72bd.tar.lz
MultiMC-1455f051e4762cf7409081f7db5cefb22d3c72bd.tar.xz
MultiMC-1455f051e4762cf7409081f7db5cefb22d3c72bd.zip
Force cached updater binary to always resolve as stale
Diffstat (limited to 'logic/updater')
-rw-r--r--logic/updater/DownloadUpdateTask.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/logic/updater/DownloadUpdateTask.cpp b/logic/updater/DownloadUpdateTask.cpp
index 6e0a92f0..029286dd 100644
--- a/logic/updater/DownloadUpdateTask.cpp
+++ b/logic/updater/DownloadUpdateTask.cpp
@@ -404,11 +404,10 @@ DownloadUpdateTask::processFileLists(NetJob *job,
{
auto cache_entry = MMC->metacache()->resolveEntry("root", entry.path);
QLOG_DEBUG() << "Updater will be in " << cache_entry->getFullPath();
- if(cache_entry->stale)
- {
- auto download = CacheDownload::make(QUrl(source.url), cache_entry);
- job->addNetAction(download);
- }
+ // force check.
+ cache_entry->stale = true;
+ auto download = CacheDownload::make(QUrl(source.url), cache_entry);
+ job->addNetAction(download);
}
else
{