about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-18T13·02+0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-18T13·02+0200
commitd8306148e04919b5ecf0e6fb58682a38d99ef944 (patch)
tree85ecbb6973c120fe99d9ab756e2509074095b6a1
parentb24b8ef77c63727b9d6494fe25cfce45d57581be (diff)
Suppress "copying 0 paths" message
-rw-r--r--src/libstore/store-api.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index fa6ade75002a..3bc5e4c57c95 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -619,6 +619,8 @@ void copyPaths(ref<Store> srcStore, ref<Store> dstStore, const PathSet & storePa
     for (auto & path : storePaths)
         if (!valid.count(path)) missing.insert(path);
 
+    if (missing.empty()) return;
+
     Activity act(*logger, lvlInfo, actCopyPaths, fmt("copying %d paths", missing.size()));
 
     std::atomic<size_t> nrDone{0};