aboutsummaryrefslogtreecommitdiff
path: root/src/nix/verify.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-16 16:09:57 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-16 16:09:57 +0200
commitb01d62285cdcd376a8db1863049c68d8c7238837 (patch)
tree97662479c20edb683e81f82b26635915703da3ca /src/nix/verify.cc
parente80257f12209c8fbb709b901039ef5199111276e (diff)
Improve progress indicator
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r--src/nix/verify.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index 2f8d02fa0..8facb4bef 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -65,7 +65,7 @@ struct CmdVerify : StorePathsCommand
std::string untrustedLabel("untrusted");
std::string corruptedLabel("corrupted");
std::string failedLabel("failed");
- logger->setExpected(doneLabel, storePaths.size());
+ //logger->setExpected(doneLabel, storePaths.size());
ThreadPool pool;
@@ -73,7 +73,7 @@ struct CmdVerify : StorePathsCommand
try {
checkInterrupt();
- Activity act(*logger, lvlInfo, format("checking ‘%s’") % storePath);
+ //Activity act(*logger, lvlInfo, format("checking ‘%s’") % storePath);
auto info = store->queryPathInfo(storePath);
@@ -85,7 +85,7 @@ struct CmdVerify : StorePathsCommand
auto hash = sink.finish();
if (hash.first != info->narHash) {
- logger->incProgress(corruptedLabel);
+ //logger->incProgress(corruptedLabel);
corrupted = 1;
printError(
format("path ‘%s’ was modified! expected hash ‘%s’, got ‘%s’")
@@ -137,19 +137,19 @@ struct CmdVerify : StorePathsCommand
}
if (!good) {
- logger->incProgress(untrustedLabel);
+ //logger->incProgress(untrustedLabel);
untrusted++;
printError(format("path ‘%s’ is untrusted") % info->path);
}
}
- logger->incProgress(doneLabel);
+ //logger->incProgress(doneLabel);
done++;
} catch (Error & e) {
printError(format(ANSI_RED "error:" ANSI_NORMAL " %s") % e.what());
- logger->incProgress(failedLabel);
+ //logger->incProgress(failedLabel);
failed++;
}
};