Don't deploy dependencies for existing symlinks

This might lead to unintended side effects, e.g., when bundling
additional resources in a separate prefix for which linuxdeploy is not
needed.
This commit is contained in:
TheAssassin
2018-08-27 19:52:36 +02:00
parent a0b0378d36
commit db77174f24
+6
View File
@@ -836,6 +836,9 @@ namespace linuxdeploy {
bool AppDir::deployDependenciesForExistingFiles() {
for (const auto& executable : listExecutables()) {
if (bf::is_symlink(executable))
continue;
if (!d->deployElfDependencies(executable))
return false;
@@ -843,6 +846,9 @@ namespace linuxdeploy {
}
for (const auto& sharedLibrary : listSharedLibraries()) {
if (bf::is_symlink(sharedLibrary))
continue;
if (!d->deployElfDependencies(sharedLibrary))
return false;