diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-03T16·10+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-03T16·10+0000 |
commit | ff762fb499be220ccd680f3bf68dca44a902a5ff (patch) | |
tree | 02f738ec60517e3eadd5b0a2bc2fe5c19c3d954c /src/libstore/remote-store.cc | |
parent | 1307b222239da8e503d22ad9316789e30b4e2431 (diff) |
* Pass HashType values instead of strings.
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r-- | src/libstore/remote-store.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index f79b22310b5b..d83d501ee20c 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -279,16 +279,16 @@ Path RemoteStore::queryDeriver(const Path & path) Path RemoteStore::addToStore(const Path & _srcPath, - bool recursive, string hashAlgo, PathFilter & filter) + bool recursive, HashType hashAlgo, PathFilter & filter) { Path srcPath(absPath(_srcPath)); writeInt(wopAddToStore, to); writeString(baseNameOf(srcPath), to); /* backwards compatibility hack */ - writeInt((hashAlgo == "sha256" && recursive) ? 0 : 1, to); + writeInt((hashAlgo == htSHA256 && recursive) ? 0 : 1, to); writeInt(recursive ? 1 : 0, to); - writeString(hashAlgo, to); + writeString(printHashType(hashAlgo), to); dumpPath(srcPath, to, filter); processStderr(); return readStorePath(from); |