Properly handle nonexisting files

This commit is contained in:
TheAssassin
2019-02-23 18:01:47 +01:00
parent f9fc51a832
commit 1f498772b4

View File

@@ -332,6 +332,10 @@ namespace linuxdeploy {
return true;
}
if (!bf::exists(path)) {
ldLog() << LD_ERROR << logPrefix << LD_NO_SPACE << "Cannot deploy non-existing library file:" << path << std::endl;
return false;
}
static auto isInExcludelist = [&logPrefix](const bf::path& fileName) {
for (const auto& excludePattern : generatedExcludelist) {