aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-fs-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-28 15:14:59 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-10 18:05:35 +0200
commit36a51ecab3f107be113401fbd401c5a491c5afea (patch)
treebf56b40e5ba425a7e85fcec468bba448f004caf8 /src/libstore/local-fs-store.cc
parent3eb621750848e0e6b30e5a79f76afbb096bb6c8a (diff)
LocalFSStore::narFromPath(): Handle the diverted store case
Diffstat (limited to 'src/libstore/local-fs-store.cc')
-rw-r--r--src/libstore/local-fs-store.cc2
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);
}
}