mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 08:42:30 +00:00
Fix segfault using non-binary cache stores as substituters
This commit is contained in:
parent
84722d67d2
commit
2175eee9fe
@ -3670,7 +3670,7 @@ void SubstitutionGoal::tryNext()
|
||||
/* Update the total expected download size. */
|
||||
auto narInfo = std::dynamic_pointer_cast<const NarInfo>(info);
|
||||
|
||||
maintainExpectedNar = std::make_unique<MaintainCount<uint64_t>>(worker.expectedNarSize, narInfo->narSize);
|
||||
maintainExpectedNar = std::make_unique<MaintainCount<uint64_t>>(worker.expectedNarSize, info->narSize);
|
||||
|
||||
maintainExpectedDownload =
|
||||
narInfo && narInfo->fileSize
|
||||
|
Loading…
Reference in New Issue
Block a user