From 8fae552a7f23d12071f544c81383b08da0a1dd4e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Jul 2005 07:37:46 +0000 Subject: [PATCH] * Sync with thesis: do not include store location in the hash computation (in the intensional model). --- src/libstore/store.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libstore/store.cc b/src/libstore/store.cc index bfa5578db..e94b5cba8 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -758,9 +758,8 @@ void makeStorePath(const Hash & contentHash, const string & suffix, { checkStoreName(suffix); - /* e.g., "sha256:1abc...:/nix/store:foo.tar.gz" */ - string s = "sha256:" + printHash(contentHash) + ":" - + nixStore + ":" + suffix; + /* e.g., "sha256:1abc...:foo.tar.gz" */ + string s = "sha256:" + printHash(contentHash) + ":" + suffix; pathHash = PathHash(hashString(htSHA256, s));