aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-22 12:37:20 -0500
committerWill Dietz <w@wdtz.org>2018-03-22 15:05:46 -0500
commit59b32403f2320e1979e5707b59d1dafcaf6ae910 (patch)
treef2e9cd5c51e70297b1d2cb7f7bf6a1464c7fa7b4
parent2bc6cfe1adc89673626a173ee38ef300588be3d1 (diff)
download.cc: fix path for cached files
-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 6eb870966..2954b221d 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";