about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-02T00·21+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-02T00·21+0200
commit7106bb061149c70c30fb56aaa3530e5f9218ef92 (patch)
treed006b865ec2b98bfd786507d957429bbdb536bf2
parentb755752f7666441e710bee9f0c21f233808874c7 (diff)
Use StoreAPI::verifyStore()
-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 ff15875e7090..23b97ca9e5aa 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);
     }