Force cached updater binary to always resolve as stale

This commit is contained in:
Petr Mrázek 2014-01-02 23:58:53 +01:00
parent 52bbf07fe5
commit 1455f051e4

View File

@ -404,12 +404,11 @@ DownloadUpdateTask::processFileLists(NetJob *job,
{ {
auto cache_entry = MMC->metacache()->resolveEntry("root", entry.path); auto cache_entry = MMC->metacache()->resolveEntry("root", entry.path);
QLOG_DEBUG() << "Updater will be in " << cache_entry->getFullPath(); QLOG_DEBUG() << "Updater will be in " << cache_entry->getFullPath();
if(cache_entry->stale) // force check.
{ cache_entry->stale = true;
auto download = CacheDownload::make(QUrl(source.url), cache_entry); auto download = CacheDownload::make(QUrl(source.url), cache_entry);
job->addNetAction(download); job->addNetAction(download);
} }
}
else else
{ {
// We need to download the file to the updatefiles folder and add a task // We need to download the file to the updatefiles folder and add a task