mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 12:10:59 +01:00
Fixed ~ and * to expand in cp and ln commands.
This commit is contained in:
parent
4c32f38047
commit
86f0fd8341
2 changed files with 40 additions and 8 deletions
|
|
@ -639,7 +639,7 @@ static void installDerivations(Globals & globals,
|
|||
PathSet comparePaths;
|
||||
comparePaths.insert(statePath);
|
||||
comparePaths.insert(read_statePath);
|
||||
if(store->toNonSharedPathSet(comparePaths).size() != 1)
|
||||
if(store->toNonSharedPathSet(comparePaths).size() != 1) //TODO !!!!!!!!!!!!! only copy when not already a symlink to a statePath !!!!!!!!!
|
||||
copyContents(externalState, statePath);
|
||||
}
|
||||
else
|
||||
|
|
@ -659,6 +659,7 @@ static void installDerivations(Globals & globals,
|
|||
|
||||
//Now we create a symlink externalState --> statePath
|
||||
printMsg(lvlError, format("SYMLINK: '%1%' --> '%2%'") % externalState % statePath);
|
||||
executeShellCommand("whoami");
|
||||
symlinkPath(statePath, externalState);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue