Skip to content

Commit

Permalink
Fix fetchTarball with chroot stores
Browse files Browse the repository at this point in the history
Fixes #2405.
  • Loading branch information
edolstra authored and zimbatm committed Oct 1, 2019
1 parent 2d2769f commit 168a887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libexpr/primops.cc
Expand Up @@ -2089,12 +2089,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}));
}


Expand Down

0 comments on commit 168a887

Please sign in to comment.