Document ‘--repair’

This commit is contained in:
Eelco Dolstra 2012-10-03 15:53:25 -04:00
parent 2bbc4a214e
commit 9c41c66c5b
3 changed files with 32 additions and 6 deletions

View File

@ -174,10 +174,19 @@ the specified store paths. Realisation is a somewhat overloaded term:
output. (For non-derivations argument, the argument itself is output. (For non-derivations argument, the argument itself is
printed.)</para> printed.)</para>
<para>If the <option>--dry-run</option> option is used, then <para>The following flags are available:</para>
<command>nix-store</command> will print on standard error a
description of what packages would be built or downloaded, and then <variablelist>
quit.</para>
<varlistentry><term><option>--dry-run</option></term>
<listitem><para>Print on standard error a description of what
packages would be built or downloaded, without actually performing
the operation</para></listitem>
</varlistentry>
</variablelist>
</refsection> </refsection>

View File

@ -361,6 +361,17 @@
</varlistentry> </varlistentry>
<varlistentry><term><option>--repair</option></term>
<listitem><para>Fix corrupted or missing store paths by
redownloading or rebuilding them. Note that this is slow because it
requires computing a cryptographic hash of the contents of every
path in the closure of the build. Also note the warning under
<command>nix-store --repair-path</command>.</para></listitem>
</varlistentry>
</variablelist> </variablelist>

View File

@ -21,8 +21,14 @@
<listitem> <listitem>
<para>The new operation <command>nix-store --repair-path</command> <para>The new operation <command>nix-store --repair-path</command>
allows corrupted or deleted store paths to be repaired by allows corrupted or missing store paths to be repaired by
redownloading them.</para> redownloading them. <command>nix-store --verify --check-contents
--repair</command> will scan and repair all paths in the Nix
store. Similarly, <command>nix-env</command>,
<command>nix-build</command>, <command>nix-instantiate</command>
and <command>nix-store --realise</command> have a
<option>--repair</option> flag to detect and fix bad paths by
rebuilding or redownloading them.</para>
</listitem> </listitem>
<listitem> <listitem>