diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-13 17:39:26 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-13 17:39:26 +0000 |
commit | 7e8961f72056f53ccf78eba0ee8c240bc2310ab8 (patch) | |
tree | f4ae8ee014f3d86aa9ec1706d1aa9e83c2329a73 /src/libstore/store.cc | |
parent | 73992371a3bc16b27b22e53d5f7ae600dea9cf60 (diff) |
* Added SHA-1 support. `nix-hash' now has an option `--type sha1' to
select SHA-1 hashing.
Diffstat (limited to 'src/libstore/store.cc')
-rw-r--r-- | src/libstore/store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc index cb5967182..b3b0dfc4f 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -419,7 +419,7 @@ Path addToStore(const Path & _srcPath) Hash h(htMD5); { SwitchToOriginalUser sw; - h = hashPath(srcPath); + h = hashPath(srcPath, htMD5); } string baseName = baseNameOf(srcPath); |