Skip to content

Commit

Permalink
Suppress "copying 0 paths" message
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 18, 2017
1 parent b24b8ef commit d830614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstore/store-api.cc
Expand Up @@ -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};
Expand Down

0 comments on commit d830614

Please sign in to comment.