forked from lix-project/lix
Use StoreAPI::verifyStore()
This commit is contained in:
parent
b755752f76
commit
7106bb0611
|
@ -768,7 +768,7 @@ static void opVerify(Strings opFlags, Strings opArgs)
|
||||||
else if (*i == "--repair") repair = true;
|
else if (*i == "--repair") repair = true;
|
||||||
else throw UsageError(format("unknown flag ‘%1%’") % *i);
|
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");
|
printMsg(lvlError, "warning: not all errors were fixed");
|
||||||
throw Exit(1);
|
throw Exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue