aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 61a12e84a..06d03bff2 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -305,7 +305,9 @@ void Store::addMultipleToStore(
[&](const StorePath & path) {
checkInterrupt();
- auto & [info, source] = *infosMap.at(path);
+ auto & [info_, source] = *infosMap.at(path);
+ auto info = info_;
+ info.ultimate = false;
if (!isValidPath(info.path)) {
MaintainCount<decltype(nrRunning)> mc(nrRunning);