Suppress "copying 0 paths" message

This commit is contained in:
Eelco Dolstra 2017-10-18 15:02:58 +02:00
parent b24b8ef77c
commit d8306148e0
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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};