From 1455f051e4762cf7409081f7db5cefb22d3c72bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 2 Jan 2014 23:58:53 +0100 Subject: Force cached updater binary to always resolve as stale --- logic/updater/DownloadUpdateTask.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'logic/updater/DownloadUpdateTask.cpp') 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 { -- cgit v1.2.3