aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/export-import.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-21 18:09:30 +0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-21 18:09:30 +0200
commitfdbbcc44924cb4d9028fa68b2f7d423fb5d8670f (patch)
treee2d5e7ef799cd558d10ab25e05efe8d15728fc2a /src/libstore/export-import.cc
parent542ae5c8f804b704101f9d27bd8b2aa62ded899c (diff)
Remove addPathToAccessor
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r--src/libstore/export-import.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc
index 883b87217..c5618c826 100644
--- a/src/libstore/export-import.cc
+++ b/src/libstore/export-import.cc
@@ -117,10 +117,7 @@ Paths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> accessor,
if (readInt(source) == 1)
readString(source);
- addToStore(info, tee.data, false, dontCheckSigs);
-
- if (accessor)
- addPathToAccessor(ref<FSAccessor>(accessor), info.path, tee.data);
+ addToStore(info, tee.data, false, dontCheckSigs, accessor);
res.push_back(info.path);
}