about summary refs log tree commit diff
path: root/src/store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-11T08·41+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-11T08·41+0000
commit73b163c1a10f2ce675d9fc3d7ad02fad4bc6511f (patch)
treeb792dbda63b1ebefb1d71b0d50c0fc8c6af759d0 /src/store.hh
parentc834a5c5975b9a62413b4aa9446f73d1c573c909 (diff)
* Fix a bug that caused Fix not to be deterministic (due to addToStore
  returning different paths if the hash of the path to be added was
  already available in the store under a different name).

Diffstat (limited to 'src/store.hh')
-rw-r--r--src/store.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/store.hh b/src/store.hh
index 8b41478a24af..82fb2e12a109 100644
--- a/src/store.hh
+++ b/src/store.hh
@@ -30,7 +30,8 @@ string expandHash(const Hash & hash, const string & target = "",
 
 /* Copy a file to the nixStore directory and register it in dbRefs.
    Return the hash code of the value. */
-void addToStore(string srcPath, string & dstPath, Hash & hash);
+void addToStore(string srcPath, string & dstPath, Hash & hash,
+    bool deterministicName = false);
 
 /* Delete a value from the nixStore directory. */
 void deleteFromStore(const string & path);