NOISSUE read local libraries only from the local location

This removes the fallback to global `libraries` folder for `local` libraries.
This commit is contained in:
Petr Mrázek 2018-11-11 23:50:36 +01:00
parent 8a7f1e405f
commit 17e09a292d

View File

@ -18,13 +18,7 @@ void Library::getApplicableFiles(OpSys system, QStringList& jar, QStringList& na
if(local && !overridePath.isEmpty()) if(local && !overridePath.isEmpty())
{ {
QString fileName = out.fileName(); QString fileName = out.fileName();
auto fullPath = FS::PathCombine(overridePath, fileName); return QFileInfo(FS::PathCombine(overridePath, fileName)).absoluteFilePath();
qDebug() << fullPath;
QFileInfo fileinfo(fullPath);
if(fileinfo.exists())
{
return fileinfo.absoluteFilePath();
}
} }
return out.absoluteFilePath(); return out.absoluteFilePath();
}; };