GH-1140 mark cached modpack dls as stale so it checks the server

This commit is contained in:
Petr Mrázek 2015-08-22 00:52:50 +02:00
parent c5bb33c716
commit b6ec2ac4b0

View File

@ -1061,6 +1061,7 @@ void MainWindow::instanceFromZipPack(QString instName, QString instGroup, QStrin
{ {
const QString path = url.host() + '/' + url.path(); const QString path = url.host() + '/' + url.path();
auto entry = ENV.metacache()->resolveEntry("general", path); auto entry = ENV.metacache()->resolveEntry("general", path);
entry->stale = true;
CacheDownloadPtr dl = CacheDownload::make(url, entry); CacheDownloadPtr dl = CacheDownload::make(url, entry);
NetJob job(tr("Modpack download")); NetJob job(tr("Modpack download"));
job.addNetAction(dl); job.addNetAction(dl);