From 73b163c1a10f2ce675d9fc3d7ad02fad4bc6511f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Jul 2003 08:41:03 +0000 Subject: * 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). --- src/fix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fix.cc') diff --git a/src/fix.cc b/src/fix.cc index 5c4297bfb7..445d682837 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(, Hash(), [])", dstPath.c_str(), ((string) hash).c_str()); } -- cgit 1.4.1