diff options
author | eldritch horrors <pennae@lix.systems> | 2024-05-16 17:58:27 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-15 21:50:25 +0000 |
commit | 3447dbfb2c0f3bf7e31577bf2d5908b14ba59601 (patch) | |
tree | 909338dd54255cd14910a5a159b544c063781fa0 /src/libstore/export-import.cc | |
parent | 5e16b10cb12a0c135683c148008df8cef0791df9 (diff) |
libstore: rewrite narFromPath as generator
Change-Id: Ifa783c2c65c06ddd1d0212016d5bfd07666ea91c
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r-- | src/libstore/export-import.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc index a05a9f23b..fa1020537 100644 --- a/src/libstore/export-import.cc +++ b/src/libstore/export-import.cc @@ -33,7 +33,7 @@ void Store::exportPath(const StorePath & path, Sink & sink) HashSink hashSink(htSHA256); TeeSink teeSink(sink, hashSink); - narFromPath(path, teeSink); + teeSink << narFromPath(path); /* Refuse to export paths that have changed. This prevents filesystem corruption from spreading to other machines. |