From 7106bb061149c70c30fb56aaa3530e5f9218ef92 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Jun 2015 02:21:15 +0200 Subject: Use StoreAPI::verifyStore() --- src/nix-store/nix-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit 1.4.1