mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
Merge pull request #2230 from matthewbauer/patch-7
Fix optimise-store.cc to skip more paths on macOS
This commit is contained in:
commit
d73e881c81
1 changed files with 1 additions and 2 deletions
|
@ -104,8 +104,7 @@ void LocalStore::optimisePath_(Activity * act, OptimiseStats & stats,
|
||||||
*.app/Contents/Resources/\*.lproj seem to be the only paths affected. See
|
*.app/Contents/Resources/\*.lproj seem to be the only paths affected. See
|
||||||
https://github.com/NixOS/nix/issues/1443 for more discussion. */
|
https://github.com/NixOS/nix/issues/1443 for more discussion. */
|
||||||
|
|
||||||
if (std::regex_search(path, std::regex("\\.app/Contents/PkgInfo$")) ||
|
if (std::regex_search(path, std::regex("\\.app/Contents/.+$")))
|
||||||
std::regex_search(path, std::regex("\\.app/Contents/Resources/.+\\.lproj$")))
|
|
||||||
{
|
{
|
||||||
debug(format("'%1%' is not allowed to be linked in macOS") % path);
|
debug(format("'%1%' is not allowed to be linked in macOS") % path);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue