Fix build

This commit is contained in:
Eelco Dolstra
2020-08-27 17:46:36 +02:00
parent e463f44bfc
commit 405c52b589
3 changed files with 13 additions and 9 deletions

View File

@ -445,16 +445,20 @@ void State::buildRemote(ref<Store> destStore,
while (true) {
auto storePathS = readString(from);
if (storePathS == "") break;
ValidPathInfo info(localStore->parseStorePath(storePathS));
assert(outputs.count(info.path));
readString(from); // deriver
info.references = readStorePaths<StorePathSet>(*localStore, from);
auto references = readStorePaths<StorePathSet>(*localStore, from);
readLongLong(from); // download size
info.narSize = readLongLong(from);
totalNarSize += info.narSize;
info.narHash = Hash::parseAny(readString(from), htSHA256);
info.ca = parseContentAddressOpt(readString(from));
auto narSize = readLongLong(from);
auto narHash = Hash::parseAny(readString(from), htSHA256);
auto ca = parseContentAddressOpt(readString(from));
readStrings<StringSet>(from); // sigs
ValidPathInfo info(localStore->parseStorePath(storePathS), narHash);
assert(outputs.count(info.path));
info.references = references;
info.narSize = narSize;
totalNarSize += info.narSize;
info.narHash = narHash;
info.ca = ca;
infos.insert_or_assign(info.path, info);
}