diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-24 15:24:02 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-24 15:24:02 +0100 |
commit | 3e428f2289d0cb1277e013cd7f37754d7c533ddf (patch) | |
tree | 881616480ec1a57e449e7604f2b73e6438e7e397 /src/libstore/export-import.cc | |
parent | 946fc12e4e6d7e097c5b6ed4f6bc4d516b10b901 (diff) |
libstore: un-inline copyNAR expansions
these are copies of copyNAR with only some variables renamed.
Change-Id: I98ddd7a98250fa5d304e18e1debf417e9f7768dd
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r-- | src/libstore/export-import.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc index 87b2f8741..e0f3eb6c9 100644 --- a/src/libstore/export-import.cc +++ b/src/libstore/export-import.cc @@ -64,9 +64,7 @@ StorePaths Store::importPaths(Source & source, CheckSigsFlag checkSigs) /* Extract the NAR from the source. */ StringSink saved; - TeeSource tee { source, saved }; - ParseSink ether; - parseDump(ether, tee); + copyNAR(source, saved); uint32_t magic = readInt(source); if (magic != exportMagic) |