1
0
Fork 0
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:
Eelco Dolstra 2012-07-26 17:36:07 -04:00
parent e3ce54ccee
commit 50395b71a9
3 changed files with 36 additions and 30 deletions

View file

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