forked from lix-project/lix
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. */
|
/* Update the total expected download size. */
|
||||||
auto narInfo = std::dynamic_pointer_cast<const NarInfo>(info);
|
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 =
|
maintainExpectedDownload =
|
||||||
narInfo && narInfo->fileSize
|
narInfo && narInfo->fileSize
|
||||||
|
|
Loading…
Reference in a new issue