aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/parser.y
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-22 23:36:29 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-22 23:36:29 +0200
commitdf3f5a78d5ab0a1f2dc9d288b271b38a9b8b33b5 (patch)
tree8524ea993ec051f12b879e6b9a10963cfb19b812 /src/libexpr/parser.y
parent66f1d7ee95ba693a15ae5dc413289fee954f0f04 (diff)
Refactor downloadCached() interface
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r--src/libexpr/parser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 75f04df3e..0cfe29c96 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -657,7 +657,9 @@ std::pair<bool, std::string> EvalState::resolveSearchPathElem(const SearchPathEl
if (isUri(elem.second)) {
try {
- res = { true, getDownloader()->downloadCached(store, elem.second, true).path };
+ CachedDownloadRequest request(elem.second);
+ request.unpack = true;
+ res = { true, getDownloader()->downloadCached(store, request).path };
} catch (DownloadError & e) {
printError(format("warning: Nix search path entry '%1%' cannot be downloaded, ignoring") % elem.second);
res = { false, "" };