mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
addToStore(): Take explicit name argument
This commit is contained in:
parent
5114a07d95
commit
7ea6ecf855
9 changed files with 36 additions and 36 deletions
|
@ -1419,7 +1419,7 @@ string EvalState::copyPathToStore(PathSet & context, const Path & path)
|
|||
else {
|
||||
dstPath = settings.readOnlyMode
|
||||
? computeStorePathForPath(checkSourcePath(path)).first
|
||||
: store->addToStore(checkSourcePath(path), true, htSHA256, defaultPathFilter, repair);
|
||||
: store->addToStore(baseNameOf(path), checkSourcePath(path), true, htSHA256, defaultPathFilter, repair);
|
||||
srcToStore[path] = dstPath;
|
||||
printMsg(lvlChatty, format("copied source ‘%1%’ -> ‘%2%’")
|
||||
% path % dstPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue