mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 16:02:43 +01:00
sourceToSink(): Throw EndOfFile
This commit is contained in:
parent
0194f81587
commit
609df83c01
2 changed files with 4 additions and 6 deletions
|
|
@ -1245,7 +1245,6 @@ StorePath LocalStore::addToStoreFromDump(
|
|||
});
|
||||
try {
|
||||
got = source.read(dumpBuffer.get() + oldSize, want);
|
||||
if (!got) break;
|
||||
} catch (EndOfFile &) {
|
||||
inMemory = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue