mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Fix the substituter tests
This commit is contained in:
parent
e3ce54ccee
commit
50395b71a9
3 changed files with 36 additions and 30 deletions
|
@ -999,7 +999,8 @@ void LocalStore::querySubstitutablePathInfos(const Path & substituter,
|
|||
while (true) {
|
||||
Path path = readLine(run.from);
|
||||
if (path == "") break;
|
||||
assert(paths.find(path) != paths.end());
|
||||
if (paths.find(path) == paths.end())
|
||||
throw Error(format("got unexpected path `%1%' from substituter") % path);
|
||||
paths.erase(path);
|
||||
SubstitutablePathInfo & info(infos[path]);
|
||||
info.deriver = readLine(run.from);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue