1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00

Add 'nix store repair' command

This commit is contained in:
Eelco Dolstra 2021-01-13 23:27:39 +01:00
parent 3da9a9241c
commit 61216d32e1
6 changed files with 66 additions and 5 deletions

View file

@ -757,7 +757,7 @@ static void opRepairPath(Strings opFlags, Strings opArgs)
throw UsageError("no flags expected");
for (auto & i : opArgs)
ensureLocalStore()->repairPath(store->followLinksToStorePath(i));
store->repairPath(store->followLinksToStorePath(i));
}
/* Optimise the disk space usage of the Nix store by hard-linking