aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-12 10:34:13 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-12 10:34:13 +0200
commit06010eaf199005a393f212023ec5e8bc97978537 (patch)
treebfe8a4bb8d31427dec455459c0b2d770d2ae4352 /src
parent506b6263efbd310837daf97b8b54e181fa4c95b6 (diff)
Fix fetchTarball with chroot stores
Fixes #2405.
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 070e72f3a..a9a1a1e35 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -2083,12 +2083,12 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
if (evalSettings.pureEval && !request.expectedHash)
throw Error("in pure evaluation mode, '%s' requires a 'sha256' argument", who);
- Path res = getDownloader()->downloadCached(state.store, request).path;
+ auto res = getDownloader()->downloadCached(state.store, request);
if (state.allowedPaths)
- state.allowedPaths->insert(res);
+ state.allowedPaths->insert(res.path);
- mkString(v, res, PathSet({res}));
+ mkString(v, res.storePath, PathSet({res.storePath}));
}