LocalFSStore::narFromPath(): Handle the diverted store case

This commit is contained in:
Eelco Dolstra
2016-08-10 18:05:35 +02:00
parent 3eb6217508
commit 36a51ecab3
+1 -1
View File
@@ -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);
}
}