mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
Implement querySubstitutablePathInfos() in the daemon
Also removed querySubstitutablePathInfo().
This commit is contained in:
parent
6586414bc7
commit
eb3036da87
7 changed files with 70 additions and 55 deletions
|
|
@ -967,18 +967,6 @@ void LocalStore::querySubstitutablePathInfos(const Path & substituter,
|
|||
}
|
||||
|
||||
|
||||
bool LocalStore::querySubstitutablePathInfo(const Path & path,
|
||||
SubstitutablePathInfo & info)
|
||||
{
|
||||
SubstitutablePathInfos infos;
|
||||
querySubstitutablePathInfos(singleton<PathSet>(path), infos);
|
||||
SubstitutablePathInfos::iterator i = infos.find(path);
|
||||
if (i == infos.end()) return false;
|
||||
info = i->second;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void LocalStore::querySubstitutablePathInfos(const PathSet & paths,
|
||||
SubstitutablePathInfos & infos)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue