aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/store.cc2
-rw-r--r--src/libstore/storeexpr.cc2
2 files changed, 2 insertions, 2 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);
diff --git a/src/libstore/storeexpr.cc b/src/libstore/storeexpr.cc
index 8f5c5dea6..3308d5b06 100644
--- a/src/libstore/storeexpr.cc
+++ b/src/libstore/storeexpr.cc
@@ -8,7 +8,7 @@
Hash hashTerm(ATerm t)
{
- return hashString(atPrint(t));
+ return hashString(atPrint(t), htMD5);
}