From 59b32403f2320e1979e5707b59d1dafcaf6ae910 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Thu, 22 Mar 2018 12:37:20 -0500 Subject: download.cc: fix path for cached files --- src/libstore/download.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 6eb87096692f..2954b221d80f 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -632,7 +632,7 @@ Path Downloader::downloadCached(ref store, const string & url_, bool unpa if (expectedHash) { expectedStorePath = store->makeFixedOutputPath(unpack, expectedHash, name); if (store->isValidPath(expectedStorePath)) - return expectedStorePath; + return store->toRealPath(expectedStorePath); } Path cacheDir = getCacheDir() + "/nix/tarballs"; -- cgit 1.4.1