about summary refs log tree commit diff
path: root/src/nix-store/help.txt
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-09-06T12·06+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-09-06T12·06+0000
commite6cb3d0a0dcfe13e9b493afdc4e2107668ec99ff (patch)
treeabd88ce033d7932ff776ac4e41d2627d2f542d20 /src/nix-store/help.txt
parent82710f96f7ea72bc0f6fcc6d736e3ad4434c1988 (diff)
* Added a command ‘nix-store --verify-paths PATHS’ to check whether
  the contents of any of the given store paths have been modified.
  E.g.

    $ nix-store --verify-path $(nix-store -qR /var/run/current-system)
    path `/nix/store/m2smyiwbxidlprfxfz4rjlvz2c3mg58y-etc' was modified! expected hash `fc87e271c5fdf179b47939b08ad13440493805584b35e3014109d04d8436e7b8', got `20f1a47281b3c0cbe299ce47ad5ca7340b20ab34246426915fce0ee9116483aa'

  All paths are checked; the exit code is 1 if any path has been
  modified, 0 otherwise.

Diffstat (limited to 'src/nix-store/help.txt')
-rw-r--r--src/nix-store/help.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-store/help.txt b/src/nix-store/help.txt
index 4782518517dd..f3e65a5283b9 100644
--- a/src/nix-store/help.txt
+++ b/src/nix-store/help.txt
@@ -25,6 +25,7 @@ Operations:
       valid
 
   --verify: verify Nix structures
+  --verify-path: verify whether the given store paths haven't been modified
   --optimise: optimise the Nix store by hard-linking identical files
 
   --query-failed-paths: list paths that failed to build (if enabled)