diff options
author | Will Dietz <w@wdtz.org> | 2018-03-22T17·37-0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-03-22T20·05-0500 |
commit | 59b32403f2320e1979e5707b59d1dafcaf6ae910 (patch) | |
tree | f2e9cd5c51e70297b1d2cb7f7bf6a1464c7fa7b4 /src/libstore | |
parent | 2bc6cfe1adc89673626a173ee38ef300588be3d1 (diff) |
download.cc: fix path for cached files
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/download.cc | 2 |
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"; |