diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-11T08·41+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-11T08·41+0000 |
commit | 73b163c1a10f2ce675d9fc3d7ad02fad4bc6511f (patch) | |
tree | b792dbda63b1ebefb1d71b0d50c0fc8c6af759d0 /src/fix.cc | |
parent | c834a5c5975b9a62413b4aa9446f73d1c573c909 (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/fix.cc')
-rw-r--r-- | src/fix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fix.cc b/src/fix.cc index 5c4297bfb760..445d682837ff 100644 --- a/src/fix.cc +++ b/src/fix.cc @@ -131,7 +131,7 @@ static Expr evalExpr(Expr e) string srcPath = searchPath(s1); string dstPath; Hash hash; - addToStore(srcPath, dstPath, hash); + addToStore(srcPath, dstPath, hash, true); return ATmake("Path(<str>, Hash(<str>), [])", dstPath.c_str(), ((string) hash).c_str()); } |