diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-18 15:02:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-18 15:02:58 +0200 |
commit | d8306148e04919b5ecf0e6fb58682a38d99ef944 (patch) | |
tree | 85ecbb6973c120fe99d9ab756e2509074095b6a1 /src/libstore/store-api.cc | |
parent | b24b8ef77c63727b9d6494fe25cfce45d57581be (diff) |
Suppress "copying 0 paths" message
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index fa6ade750..3bc5e4c57 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}; |