Merge pull request #4106 from jamierocks/fix-4055
GH-4055 Don't download multiple files to the same path
This commit is contained in:
commit
d2a44effb5
@ -108,6 +108,10 @@ void PackInstallTask::downloadPack()
|
|||||||
auto relpath = FS::PathCombine("minecraft", file.path, file.name);
|
auto relpath = FS::PathCombine("minecraft", file.path, file.name);
|
||||||
auto path = FS::PathCombine(m_stagingPath, relpath);
|
auto path = FS::PathCombine(m_stagingPath, relpath);
|
||||||
|
|
||||||
|
if (filesToCopy.contains(entry->getFullPath())) {
|
||||||
|
qWarning() << "Ignoring" << file.url << "as a file of that path is already downloading.";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
qDebug() << "Will download" << file.url << "to" << path;
|
qDebug() << "Will download" << file.url << "to" << path;
|
||||||
filesToCopy[entry->getFullPath()] = path;
|
filesToCopy[entry->getFullPath()] = path;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user