Fix checking of NAR hashes

*headdesk*
*headdesk*
*headdesk*

So since commit 22144afa8d, Nix hasn't
actually checked whether the content of a downloaded NAR matches the
hash specified in the manifest / NAR info file.  Urghhh...
This commit is contained in:
Eelco Dolstra 2014-01-08 17:32:40 +01:00
parent 0fdf4da0e9
commit 11cb4bfb25
1 changed files with 1 additions and 0 deletions

View File

@ -2749,6 +2749,7 @@ void SubstitutionGoal::finished()
logPipe.readSide.close();
/* Get the hash info from stdout. */
string dummy = readLine(outPipe.readSide);
string expectedHashStr = statusOk(status) ? readLine(outPipe.readSide) : "";
outPipe.readSide.close();