diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-07-28 15:14:59 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-08-10 18:05:35 +0200 |
commit | 36a51ecab3f107be113401fbd401c5a491c5afea (patch) | |
tree | bf56b40e5ba425a7e85fcec468bba448f004caf8 | |
parent | 3eb621750848e0e6b30e5a79f76afbb096bb6c8a (diff) |
LocalFSStore::narFromPath(): Handle the diverted store case
-rw-r--r-- | src/libstore/local-fs-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-fs-store.cc b/src/libstore/local-fs-store.cc index c6ed8f746..95c8ecd9b 100644 --- a/src/libstore/local-fs-store.cc +++ b/src/libstore/local-fs-store.cc @@ -81,7 +81,7 @@ void LocalFSStore::narFromPath(const Path & path, Sink & sink) { if (!isValidPath(path)) throw Error(format("path ā%sā is not valid") % path); - dumpPath(path, sink); + dumpPath(getRealStoreDir() + std::string(path, storeDir.size()), sink); } } |