mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
S3BinaryCacheStore: Fix size determination
This commit is contained in:
parent
dfe66420e7
commit
4e7f1c7f11
2 changed files with 6 additions and 4 deletions
|
@ -283,7 +283,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, Source & narSource
|
|||
if (repair || !fileExists(narInfo->url)) {
|
||||
stats.narWrite++;
|
||||
upsertFile(narInfo->url,
|
||||
std::make_shared<std::fstream>(fnTemp, std::ios_base::in),
|
||||
std::make_shared<std::fstream>(fnTemp, std::ios_base::in | std::ios_base::binary),
|
||||
"application/x-nix-nar");
|
||||
} else
|
||||
stats.narWriteAverted++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue