aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store/nix-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-02 02:21:15 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-02 02:21:15 +0200
commit7106bb061149c70c30fb56aaa3530e5f9218ef92 (patch)
treed006b865ec2b98bfd786507d957429bbdb536bf2 /src/nix-store/nix-store.cc
parentb755752f7666441e710bee9f0c21f233808874c7 (diff)
Use StoreAPI::verifyStore()
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index ff15875e7..23b97ca9e 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -768,7 +768,7 @@ static void opVerify(Strings opFlags, Strings opArgs)
else if (*i == "--repair") repair = true;
else throw UsageError(format("unknown flag ‘%1%’") % *i);
- if (ensureLocalStore().verifyStore(checkContents, repair)) {
+ if (store->verifyStore(checkContents, repair)) {
printMsg(lvlError, "warning: not all errors were fixed");
throw Exit(1);
}