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:
parent
712b616a84
commit
bb1034316d
7 changed files with 13 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue