1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Don't overload dumpPath()

This commit is contained in:
Eelco Dolstra 2016-03-22 14:21:45 +01:00
parent 712b616a84
commit bb1034316d
7 changed files with 13 additions and 11 deletions

View file

@ -69,9 +69,11 @@ ref<FSAccessor> LocalFSStore::getFSAccessor()
return make_ref<LocalStoreAccessor>(ref<Store>(shared_from_this()));
}
void LocalFSStore::dumpPath(const Path & path, Sink & sink)
void LocalFSStore::narFromPath(const Path & path, Sink & sink)
{
nix::dumpPath(path, sink);
if (!isValidPath(path))
throw Error(format("path %s is not valid") % path);
dumpPath(path, sink);
}
}