Skip to content

Commit

Permalink
Merge pull request #1704 from lheckemann/buildenv-eol-fix
Browse files Browse the repository at this point in the history
Fix "Unexpected EOF reading a line" error
  • Loading branch information
edolstra authored Nov 29, 2017
2 parents b52846a + f986a44 commit cd74a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buildenv/buildenv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cd74a55

Please sign in to comment.