about summary refs log tree commit diff
path: root/src/store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-08T20·26+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-08T20·26+0000
commit9a99dc736d814f41d2b3ceb92da2435ae2dd5632 (patch)
tree13b525d2a48c164950a71fe3fdf762f8030ea6cf /src/store.cc
parentcab3f4977a412681a77767ec7307ee642b61332d (diff)
* Canonicalise paths so that Fix produces identical Nix
  expressions for identical inputs.

Diffstat (limited to 'src/store.cc')
-rw-r--r--src/store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store.cc b/src/store.cc
index bb945e037ad3..095d20430777 100644
--- a/src/store.cc
+++ b/src/store.cc
@@ -177,7 +177,7 @@ void addToStore(string srcPath, string & dstPath, Hash & hash)
     }
     
     string baseName = baseNameOf(srcPath);
-    dstPath = nixStore + "/" + (string) hash + "-" + baseName;
+    dstPath = canonPath(nixStore + "/" + (string) hash + "-" + baseName);
 
     copyPath(srcPath, dstPath);