about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-22T17·37-0500
committerWill Dietz <w@wdtz.org>2018-03-22T20·05-0500
commit59b32403f2320e1979e5707b59d1dafcaf6ae910 (patch)
treef2e9cd5c51e70297b1d2cb7f7bf6a1464c7fa7b4 /src/libstore
parent2bc6cfe1adc89673626a173ee38ef300588be3d1 (diff)
download.cc: fix path for cached files
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
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> 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";