forked from lix-project/lix
Remove obsolete EOF checks
This commit is contained in:
parent
5959c591a0
commit
ca70fba0bf
|
@ -1122,13 +1122,9 @@ PathSet LocalStore::querySubstitutablePaths(const PathSet & paths)
|
||||||
substituters should only write (short) messages to
|
substituters should only write (short) messages to
|
||||||
stderr when they fail. I.e. they shouldn't write debug
|
stderr when they fail. I.e. they shouldn't write debug
|
||||||
output. */
|
output. */
|
||||||
try {
|
|
||||||
Path path = getLineFromSubstituter(run);
|
Path path = getLineFromSubstituter(run);
|
||||||
if (path == "") break;
|
if (path == "") break;
|
||||||
res.insert(path);
|
res.insert(path);
|
||||||
} catch (EndOfFile e) {
|
|
||||||
throw Error(format("substituter `%1%' failed: %2%") % *i % chomp(drainFD(run.error)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
@ -1147,7 +1143,6 @@ void LocalStore::querySubstitutablePathInfos(const Path & substituter,
|
||||||
writeLine(run.to, s);
|
writeLine(run.to, s);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
|
||||||
Path path = getLineFromSubstituter(run);
|
Path path = getLineFromSubstituter(run);
|
||||||
if (path == "") break;
|
if (path == "") break;
|
||||||
if (paths.find(path) == paths.end())
|
if (paths.find(path) == paths.end())
|
||||||
|
@ -1164,9 +1159,6 @@ void LocalStore::querySubstitutablePathInfos(const Path & substituter,
|
||||||
}
|
}
|
||||||
info.downloadSize = getIntLineFromSubstituter<long long>(run);
|
info.downloadSize = getIntLineFromSubstituter<long long>(run);
|
||||||
info.narSize = getIntLineFromSubstituter<long long>(run);
|
info.narSize = getIntLineFromSubstituter<long long>(run);
|
||||||
} catch (EndOfFile e) {
|
|
||||||
throw Error(format("substituter `%1%' failed: %2%") % substituter % chomp(drainFD(run.error)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue