mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
Add a Store::addToStore() variant that accepts a NAR
As a side effect, this ensures that signatures are propagated when copying paths between stores. Also refactored import/export to make use of this.
This commit is contained in:
parent
b6c768fb6a
commit
538a64e8c3
15 changed files with 235 additions and 338 deletions
|
@ -7,9 +7,9 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
ref<std::string> compress(const std::string & method, ref<std::string> in);
|
||||
ref<std::string> compress(const std::string & method, const std::string & in);
|
||||
|
||||
ref<std::string> decompress(const std::string & method, ref<std::string> in);
|
||||
ref<std::string> decompress(const std::string & method, const std::string & in);
|
||||
|
||||
MakeError(UnknownCompressionMethod, Error);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue