diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-02-07T12·32+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07T12·32+0100 |
commit | abe6be578b501e265a3c4a0c33995c4848f28f56 (patch) | |
tree | 7882f63a1dcfa25b6504fb229541b11b751c5709 /src/libexpr/eval.cc | |
parent | 6f6bfc820544c3fe9cc35ec67ed3f9d4c6a293a3 (diff) | |
parent | 69d82e5c58bf6d7e16fc296f598c352da2a618d0 (diff) |
Merge pull request #1816 from shlevy/add-path
Add path primop.
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 7775cbe53cc4..0b0a0f7b1790 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1578,7 +1578,7 @@ string EvalState::copyPathToStore(PathSet & context, const Path & path) dstPath = srcToStore[path]; else { dstPath = settings.readOnlyMode - ? store->computeStorePathForPath(checkSourcePath(path)).first + ? store->computeStorePathForPath(baseNameOf(path), checkSourcePath(path)).first : store->addToStore(baseNameOf(path), checkSourcePath(path), true, htSHA256, defaultPathFilter, repair); srcToStore[path] = dstPath; printMsg(lvlChatty, format("copied source '%1%' -> '%2%'") |