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); }