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

This commit is contained in:
Eelco Dolstra 2016-07-28 15:14:59 +02:00
parent 3eb6217508
commit 36a51ecab3

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);
}
}