Skip to content

Commit

Permalink
Merge branch 'libarchive-decompress' of https://github.com/serokell/nix
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 15, 2021
2 parents f716779 + 88c8804 commit 6fb7582
Show file tree
Hide file tree
Showing 10 changed files with 264 additions and 369 deletions.
3 changes: 3 additions & 0 deletions src/libstore/binary-cache-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
narInfo->url = "nar/" + narInfo->fileHash->to_string(Base32, false) + ".nar"
+ (compression == "xz" ? ".xz" :
compression == "bzip2" ? ".bz2" :
compression == "zstd" ? ".zst" :
compression == "lzip" ? ".lzip" :
compression == "lz4" ? ".lz4" :
compression == "br" ? ".br" :
"");

Expand Down
2 changes: 1 addition & 1 deletion src/libstore/filetransfer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ struct curlFileTransfer : public FileTransfer
}

LambdaSink finalSink;
std::shared_ptr<CompressionSink> decompressionSink;
std::shared_ptr<FinishSink> decompressionSink;
std::optional<StringSink> errorSink;

std::exception_ptr writeException;
Expand Down
Loading

0 comments on commit 6fb7582

Please sign in to comment.