From 7e8961f72056f53ccf78eba0ee8c240bc2310ab8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Jan 2005 17:39:26 +0000 Subject: * Added SHA-1 support. `nix-hash' now has an option `--type sha1' to select SHA-1 hashing. --- src/libstore/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/store.cc') diff --git a/src/libstore/store.cc b/src/libstore/store.cc index cb5967182aa8..b3b0dfc4f50b 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); -- cgit 1.4.1