GH-1697 always stale files tolerate errors if a local copy is present
This fixes the situation when liteloader snapshot site is broken and there's an older local snapshot already present.
This commit is contained in:
@ -56,4 +56,10 @@ JobStatus MetaCacheSink::finalizeCache(QNetworkReply & reply)
|
||||
ENV.metacache()->updateEntry(m_entry);
|
||||
return Job_Finished;
|
||||
}
|
||||
|
||||
bool MetaCacheSink::hasLocalData()
|
||||
{
|
||||
QFileInfo info(m_filename);
|
||||
return info.exists() && info.size() != 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user