diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-16T15·59+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-16T15·59+0000 |
commit | 2f04e7102eaad3159073019af96e6e5c4f2c9bcf (patch) | |
tree | 324814e02be135c03df6e456c1eec1227b3b85dc /src/eval.cc | |
parent | a09e66da5af348dc25e3b372ec9f518d3532f863 (diff) |
* Path hashing.
Diffstat (limited to 'src/eval.cc')
-rw-r--r-- | src/eval.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.cc b/src/eval.cc index 14577c8738ae..c96cf6467ecc 100644 --- a/src/eval.cc +++ b/src/eval.cc @@ -148,10 +148,12 @@ static Hash computeDerived(Hash sourceHash, string targetName, throw Error("program " + progPath + " failed to create a result in " + targetPath); +#if 0 /* Remove write permission from the value. */ int res = system(("chmod -R -w " + targetPath).c_str()); // !!! escaping if (WEXITSTATUS(res) != 0) throw Error("cannot remove write permission from " + targetPath); +#endif } catch (exception &) { // system(("rm -rf " + targetPath).c_str()); @@ -159,7 +161,7 @@ static Hash computeDerived(Hash sourceHash, string targetName, } /* Hash the result. */ - Hash targetHash = hashFile(targetPath); + Hash targetHash = hashPath(targetPath); /* Register targetHash -> targetPath. !!! this should be in values.cc. */ |