Merge pull request #1704 from lheckemann/buildenv-eol-fix

Fix "Unexpected EOF reading a line" error
This commit is contained in:
Eelco Dolstra 2017-11-29 15:27:57 +01:00 committed by GitHub
commit cd74a55afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,9 +115,9 @@ static void addPkg(const Path & pkgDir, int priority)
return;
throw SysError(format("opening '%1%'") % propagatedFN);
}
propagated = readLine(fd.get());
propagated = readFile(fd.get());
}
for (const auto & p : tokenizeString<std::vector<string>>(propagated, " "))
for (const auto & p : tokenizeString<std::vector<string>>(propagated, " \n"))
if (done.find(p) == done.end())
postponed.insert(p);
}