* Added SHA-1 support. nix-hash' now has an option --type sha1' to

select SHA-1 hashing.
This commit is contained in:
Eelco Dolstra 2005-01-13 17:39:26 +00:00
parent 73992371a3
commit 7e8961f720
9 changed files with 487 additions and 26 deletions

View file

@ -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);

View file

@ -8,7 +8,7 @@
Hash hashTerm(ATerm t)
{
return hashString(atPrint(t));
return hashString(atPrint(t), htMD5);
}